Class BaSyxElementTranslator
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.BaSyxElementTranslator
class BaSyxElementTranslator extends Object
Bridges between arbitrary BaSyx instances and instances of the IIP-Ecosphere AAS abstraction.
The BaSyx interface structure prevents handing sub-model and submodel elements collections in one
type, so we define that just for the elements. We may even avoid the type checks in here, but this
shall be ok for now.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceBaSyxElementTranslator.DataElementsRegistrarSomething that can take over/register data elements.(package private) static interfaceBaSyxElementTranslator.OperationsRegistrarSomething that can take over/register operations.(package private) static interfaceBaSyxElementTranslator.RemainingSubmodelElementsRegistrarSomething that can take over/register (remaining) submodel elements.(package private) static interfaceBaSyxElementTranslator.SubmodelElementsRegistrarConvenience interface for everything that can be registered. -
Constructor Summary
Constructors Constructor Description BaSyxElementTranslator() -
Method Summary
Modifier and Type Method Description (package private) static voidregisterOperations(Map<String,org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation> operations, BaSyxElementTranslator.OperationsRegistrar reg)Registers the operations.(package private) static voidregisterProperties(Map<String,org.eclipse.basyx.submodel.metamodel.api.submodelelement.dataelement.IProperty> properties, BaSyxElementTranslator.DataElementsRegistrar reg)Registers the operations.(package private) static voidregisterRemainingSubmodelElements(Map<String,org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement> elements, BaSyxElementTranslator.RemainingSubmodelElementsRegistrar reg)Registers the remaining sub-model elements, i.e., none of those handled by the other methods/interfaces.(package private) static voidregisterValues(Map<String,Object> elements, BaSyxElementTranslator.DataElementsRegistrar reg)Registers the data elements.
-
Constructor Details
-
BaSyxElementTranslator
BaSyxElementTranslator()
-
-
Method Details
-
registerValues
static void registerValues(Map<String,Object> elements, BaSyxElementTranslator.DataElementsRegistrar reg)Registers the data elements.- Parameters:
elements- the data elements to be processed (as declared by BaSyx)reg- the IIP-Ecosphere registrar
-
registerProperties
static void registerProperties(Map<String,org.eclipse.basyx.submodel.metamodel.api.submodelelement.dataelement.IProperty> properties, BaSyxElementTranslator.DataElementsRegistrar reg)Registers the operations.- Parameters:
properties- the properties to be processed (as declared by BaSyx)reg- the IIP-Ecosphere registrar
-
registerOperations
static void registerOperations(Map<String,org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation> operations, BaSyxElementTranslator.OperationsRegistrar reg)Registers the operations.- Parameters:
operations- the operations to be processed (as declared by BaSyx)reg- the IIP-Ecosphere registrar
-
registerRemainingSubmodelElements
static void registerRemainingSubmodelElements(Map<String,org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement> elements, BaSyxElementTranslator.RemainingSubmodelElementsRegistrar reg)Registers the remaining sub-model elements, i.e., none of those handled by the other methods/interfaces.- Parameters:
elements- the elements to be processed (as declared by BaSyx)reg- the IIP-Ecosphere registrar
-