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 java.lang.Object implements ConnectorOutputTypeTranslator<S,T>
An abstract basic implementation of theConnectorOutputTypeTranslatorto store theModelAccess.- 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 Modifier and Type Field Description private ModelAccessmodelAccess
-
Constructor Summary
Constructors Constructor Description AbstractConnectorOutputTypeTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelAccessgetModelAccess()Returns 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, wait
-
Methods inherited from interface de.iip_ecosphere.platform.connectors.types.ConnectorOutputTypeTranslator
getSourceType, getTargetType, initializeModelAccess
-
-
-
-
Field Detail
-
modelAccess
private ModelAccess modelAccess
-
-
Method Detail
-
getModelAccess
public ModelAccess 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
public void setModelAccess(ModelAccess modelAccess)
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
-
-