Class AbstractConnectorOutputTypeTranslator<S,T>
java.lang.Object
de.iip_ecosphere.platform.connectors.types.AbstractConnectorOutputTypeTranslator<S,T>
- Type Parameters:
S- the source type (seeConnectorOutputTypeTranslator)T- the target type (seeConnectorOutputTypeTranslator)
- All Implemented Interfaces:
ModelAccessProvider,ConnectorOutputTypeTranslator<S,,T> de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,T>
public abstract class AbstractConnectorOutputTypeTranslator<S,T>
extends Object
implements ConnectorOutputTypeTranslator<S,T>
An abstract basic implementation of the
ConnectorOutputTypeTranslator to store the ModelAccess.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.model.ModelAccessProvider
ModelAccessProvider.IOModelAccessFunction, ModelAccessProvider.IOVoidFunction -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the model access instance to be used during type translations.voidsetModelAccess(ModelAccess modelAccess) Defines the model access.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.connectors.types.ConnectorOutputTypeTranslator
getSourceType, getTargetType, initializeModelAccessMethods inherited from interface de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator
to
-
Field Details
-
modelAccess
-
-
Constructor Details
-
AbstractConnectorOutputTypeTranslator
public AbstractConnectorOutputTypeTranslator()
-
-
Method Details
-
getModelAccess
Description copied from interface:ModelAccessProviderReturns the model access instance to be used during type translations.- Specified by:
getModelAccessin interfaceModelAccessProvider- Returns:
- the model access instance, may be null (see
MachineConnector.hasModel())
-
setModelAccess
Description copied from interface:ModelAccessProviderDefines the model access. Handle with care, shall be called (indirectly) by the connector only.- Specified by:
setModelAccessin interfaceModelAccessProvider- Parameters:
modelAccess- the model access
-