Class BaSyxOperation.BaSxyOperationBuilder
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.BaSyxOperation.BaSxyOperationBuilder
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder,de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Operation>
- Enclosing class:
- BaSyxOperation
public static class BaSyxOperation.BaSxyOperationBuilder extends Object implements de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
Implements the operation builder.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields Modifier and Type Field Description private List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable>inOutVariablesprivate List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable>inputVariablesprivate BaSyxOperationinstanceprivate org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.Operationoperationprivate List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable>outputVariablesprivate BaSyxSubmodelElementContainerBuilder<?>parentBuilder -
Constructor Summary
Constructors Constructor Description BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort)Creates an instance. -
Method Summary
Modifier and Type Method Description de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddInOutVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddInputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddOutputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)de.iip_ecosphere.platform.support.aas.Operationbuild()private org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariablecreateOperationVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)Creates an operation variable.BaSyxSubmodelElementContainerBuilder<?>getParentBuilder()de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetInvocable(Function<Object[],Object> invocable)
-
Field Details
-
parentBuilder
-
instance
-
operation
private org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.Operation operation -
inputVariables
private List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable> inputVariables -
outputVariables
private List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable> outputVariables -
inOutVariables
private List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable> inOutVariables
-
-
Constructor Details
-
BaSxyOperationBuilder
BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort)Creates an instance. Prevents from external creation.- Parameters:
parentBuilder- the parent builderidShort- the short name of the operation- Throws:
IllegalArgumentException- ifidShortis null or empty
-
-
Method Details
-
getParentBuilder
- Specified by:
getParentBuilderin interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
createOperationVariable
private org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable createOperationVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)Creates an operation variable. Just in case that we somewhen need name and type.- Parameters:
idShort- the short id of the variabletype- the type of the variable (may be null for left undefined)- Returns:
- the operation variable
-
addInputVariable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder addInputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)- Specified by:
addInputVariablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
addOutputVariable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder addOutputVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)- Specified by:
addOutputVariablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
addInOutVariable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder addInOutVariable(String idShort, de.iip_ecosphere.platform.support.aas.Type type)- Specified by:
addInOutVariablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
setInvocable
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder setInvocable(Function<Object[],Object> invocable)- Specified by:
setInvocablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
build
public de.iip_ecosphere.platform.support.aas.Operation build()- Specified by:
buildin interfacede.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Operation>
-