Class BaSyxOperationInvocation

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.BaSyxOperationInvocation
All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Invokable.OperationInvocation

class BaSyxOperationInvocation extends Object implements de.iip_ecosphere.platform.support.aas.Invokable.OperationInvocation
Represents an implementation-specific submodel operation invocation.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[]
     
    private String
     
    private org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[]
     
    private String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaSyxOperationInvocation(String submodelId, String idShort, org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[] args)
    Creates an invocation object.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    execute(org.eclipse.digitaltwin.basyx.submodelrepository.client.ConnectedSubmodelRepository repo)
    Executes the operation on repo.
    org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[]
    Returns the result of the execution if no exception was thrown.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • submodelId

      private String submodelId
    • idShort

      private String idShort
    • args

      private org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[] args
    • result

      private org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[] result
  • Constructor Details

    • BaSyxOperationInvocation

      BaSyxOperationInvocation(String submodelId, String idShort, org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[] args)
      Creates an invocation object.
      Parameters:
      submodelId - the submodel id
      idShort - the id of the operation
      args - the arguments
  • Method Details

    • execute

      void execute(org.eclipse.digitaltwin.basyx.submodelrepository.client.ConnectedSubmodelRepository repo) throws org.eclipse.digitaltwin.basyx.core.exceptions.ElementDoesNotExistException
      Executes the operation on repo.
      Parameters:
      repo - the repository to execute the operation on
      Throws:
      org.eclipse.digitaltwin.basyx.core.exceptions.ElementDoesNotExistException - if the operation/submodel cannot be found
    • getResult

      public org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable[] getResult()
      Returns the result of the execution if no exception was thrown.
      Returns:
      the result