Class BaSyxOperation

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.aas.Element, de.iip_ecosphere.platform.support.aas.HasDataSpecification, de.iip_ecosphere.platform.support.aas.HasKind, de.iip_ecosphere.platform.support.aas.HasSemantics, de.iip_ecosphere.platform.support.aas.Operation, de.iip_ecosphere.platform.support.aas.Qualifiable, de.iip_ecosphere.platform.support.aas.Referable, de.iip_ecosphere.platform.support.aas.SubmodelElement

    public class BaSyxOperation
    extends BaSyxSubmodelElement
    implements de.iip_ecosphere.platform.support.aas.Operation
    Implements an AAS Operation wrapper for BaSyx.
    Author:
    Holger Eichelberger, SSE
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BaSyxOperation.BaSxyOperationBuilder
      Implements the operation builder.
      • Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.Operation

        de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation operation  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BaSyxOperation()
      Creates an instance.
      (package private) BaSyxOperation​(org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation operation)
      Creates an instance while retrieving an AAS.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)  
      int getArgsCount()  
      java.lang.String getIdShort()  
      int getInArgsCount()  
      int getInOutArgsCount()  
      (package private) org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation getOperation()
      Returns the BaSyx operation instance.
      int getOutArgsCount()  
      (package private) org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation getSubmodelElement()
      Returns the implementing sub-model element.
      java.lang.Object invoke​(java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.iip_ecosphere.platform.support.aas.Element

        update
    • Field Detail

      • operation

        private org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation operation
    • Constructor Detail

      • BaSyxOperation

        private BaSyxOperation()
        Creates an instance. Prevents from external creation.
      • BaSyxOperation

        BaSyxOperation​(org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation operation)
        Creates an instance while retrieving an AAS.
        Parameters:
        operation - the operation
    • Method Detail

      • getOperation

        org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation getOperation()
        Returns the BaSyx operation instance.
        Returns:
        the operation instance
      • getIdShort

        public java.lang.String getIdShort()
        Specified by:
        getIdShort in interface de.iip_ecosphere.platform.support.aas.Element
      • getInArgsCount

        public int getInArgsCount()
        Specified by:
        getInArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • getOutArgsCount

        public int getOutArgsCount()
        Specified by:
        getOutArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • getInOutArgsCount

        public int getInOutArgsCount()
        Specified by:
        getInOutArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • getArgsCount

        public int getArgsCount()
        Specified by:
        getArgsCount in interface de.iip_ecosphere.platform.support.aas.Operation
      • invoke

        public java.lang.Object invoke​(java.lang.Object... args)
                                throws java.util.concurrent.ExecutionException
        Specified by:
        invoke in interface de.iip_ecosphere.platform.support.aas.Operation
        Throws:
        java.util.concurrent.ExecutionException
      • getSubmodelElement

        org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation getSubmodelElement()
        Description copied from class: BaSyxSubmodelElement
        Returns the implementing sub-model element.
        Specified by:
        getSubmodelElement in class BaSyxSubmodelElement
        Returns:
        the submodel element
      • accept

        public void accept​(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)
        Specified by:
        accept in interface de.iip_ecosphere.platform.support.aas.Element