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 java.lang.Object implements de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderImplements the operation builder.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable>inOutVariablesprivate java.util.List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable>inputVariablesprivate BaSyxOperationinstanceprivate org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.Operationoperationprivate java.util.List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable>outputVariablesprivate BaSyxSubmodelElementContainerBuilder<?>parentBuilder
-
Constructor Summary
Constructors Constructor Description BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, java.lang.String idShort)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddInOutVariable(java.lang.String idShort, de.iip_ecosphere.platform.support.aas.Type type)de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddInputVariable(java.lang.String idShort, de.iip_ecosphere.platform.support.aas.Type type)de.iip_ecosphere.platform.support.aas.Operation.OperationBuilderaddOutputVariable(java.lang.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(java.lang.String idShort, de.iip_ecosphere.platform.support.aas.Type type)Creates an operation variable.BaSyxSubmodelElementContainerBuilder<?>getParentBuilder()de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetInvocable(java.util.function.Function<java.lang.Object[],java.lang.Object> invocable)de.iip_ecosphere.platform.support.aas.Operation.OperationBuildersetInvocableLazy(java.util.function.Function<java.lang.Object[],java.lang.Object> invocable)
-
-
-
Field Detail
-
parentBuilder
private BaSyxSubmodelElementContainerBuilder<?> parentBuilder
-
instance
private BaSyxOperation instance
-
operation
private org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.Operation operation
-
inputVariables
private java.util.List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable> inputVariables
-
outputVariables
private java.util.List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable> outputVariables
-
inOutVariables
private java.util.List<org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable> inOutVariables
-
-
Constructor Detail
-
BaSxyOperationBuilder
BaSxyOperationBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, java.lang.String idShort)
Creates an instance. Prevents from external creation.- Parameters:
parentBuilder- the parent builderidShort- the short name of the operation- Throws:
java.lang.IllegalArgumentException- ifidShortis null or empty
-
-
Method Detail
-
getParentBuilder
public BaSyxSubmodelElementContainerBuilder<?> getParentBuilder()
- Specified by:
getParentBuilderin interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
createOperationVariable
private org.eclipse.basyx.submodel.metamodel.map.submodelelement.operation.OperationVariable createOperationVariable(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.util.function.Function<java.lang.Object[],java.lang.Object> invocable)
- Specified by:
setInvocablein interfacede.iip_ecosphere.platform.support.aas.Operation.OperationBuilder
-
setInvocableLazy
public de.iip_ecosphere.platform.support.aas.Operation.OperationBuilder setInvocableLazy(java.util.function.Function<java.lang.Object[],java.lang.Object> invocable)
- Specified by:
setInvocableLazyin 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>
-
-