Class AbstractConnectorInputTypeTranslator<T,S>
java.lang.Object
de.iip_ecosphere.platform.connectors.types.AbstractConnectorInputTypeTranslator<T,S>
- Type Parameters:
T- the target type (seeConnectorInputTypeTranslator)S- the source type (seeConnectorInputTypeTranslator)
- All Implemented Interfaces:
ModelAccessProvider,ConnectorInputTypeTranslator<T,,S> de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<T,S>
public abstract class AbstractConnectorInputTypeTranslator<T,S>
extends Object
implements ConnectorInputTypeTranslator<T,S>
An abstract basic implementation of the
ConnectorInputTypeTranslator 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.ConnectorInputTypeTranslator
getSourceType, getTargetTypeMethods inherited from interface de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator
from
-
Field Details
-
modelAccess
-
-
Constructor Details
-
AbstractConnectorInputTypeTranslator
public AbstractConnectorInputTypeTranslator()
-
-
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
-