Interface ConnectorOutputTypeTranslator<S,T>
-
- Type Parameters:
S- the source type (seeTypeTranslator)T- the target type (seeTypeTranslator)
- All Superinterfaces:
ModelAccessProvider,de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,T>
- All Known Implementing Classes:
AbstractConnectorOutputTypeTranslator,ChanneledConnectorOutputTypeAdapter,ConnectorOutputTypeAdapter
public interface ConnectorOutputTypeTranslator<S,T> extends de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,T>, ModelAccessProvider
Refines theTypeTranslatorfor the use with machine connectors.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.model.ModelAccessProvider
ModelAccessProvider.IOModelAccessFunction, ModelAccessProvider.IOVoidFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends S>getSourceType()Returns the source type.java.lang.Class<? extends T>getTargetType()Returns the target type.voidinitializeModelAccess()Called to initialize the model access, e.g., to setup notifications.-
Methods inherited from interface de.iip_ecosphere.platform.connectors.model.ModelAccessProvider
getModelAccess, setModelAccess
-
-
-
-
Method Detail
-
initializeModelAccess
void initializeModelAccess() throws java.io.IOExceptionCalled to initialize the model access, e.g., to setup notifications. Called only, when the connector is connected.- Throws:
java.io.IOException- in case the initialization fails, e.g., monitors cannot be set up
-
getSourceType
java.lang.Class<? extends S> getSourceType()
Returns the source type.- Returns:
- the source type
-
getTargetType
java.lang.Class<? extends T> getTargetType()
Returns the target type.- Returns:
- the target type
-
-