Class ChannelTranslatingProtocolAdapter<O,I,CO,CI>
java.lang.Object
de.iip_ecosphere.platform.connectors.types.AbstractProtocolAdapter<O,I,CO,CI>
de.iip_ecosphere.platform.connectors.types.TranslatingProtocolAdapter<O,I,CO,CI>
de.iip_ecosphere.platform.connectors.types.ChannelTranslatingProtocolAdapter<O,I,CO,CI>
- Type Parameters:
O- the output type from the underlying machine/platformI- the input type to the underlying machine/platformCO- the output type of the connectorCI- the input type of the connector
- All Implemented Interfaces:
ChannelProtocolAdapter<O,,I, CO, CI> ProtocolAdapter<O,I, CO, CI>
public class ChannelTranslatingProtocolAdapter<O,I,CO,CI>
extends TranslatingProtocolAdapter<O,I,CO,CI>
implements ChannelProtocolAdapter<O,I,CO,CI>
Uses two
TypeTranslator instances for channeled protocol adaptation.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannelTranslatingProtocolAdapter(String outputChannel, ConnectorOutputTypeTranslator<O, CO> outputTranslator, String inputChannel, ConnectorInputTypeTranslator<CI, I> inputTranslator) Creates a translating protocol adapter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the input channel.Returns the name of the output channel.Methods inherited from class de.iip_ecosphere.platform.connectors.types.TranslatingProtocolAdapter
adaptInput, adaptOutput, getConnectorInputType, getConnectorOutputType, getProtocolInputType, getProtocolOutputType, initializeModelAccess, setModelAccessMethods inherited from class de.iip_ecosphere.platform.connectors.types.AbstractProtocolAdapter
getModelAccessMethods 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.ProtocolAdapter
adaptInput, adaptOutput, getConnectorInputType, getConnectorOutputType, getModelAccess, getProtocolInputType, getProtocolOutputType, initializeModelAccess, setModelAccess
-
Field Details
-
outputChannel
-
inputChannel
-
-
Constructor Details
-
ChannelTranslatingProtocolAdapter
public ChannelTranslatingProtocolAdapter(String outputChannel, ConnectorOutputTypeTranslator<O, CO> outputTranslator, String inputChannel, ConnectorInputTypeTranslator<CI, I> inputTranslator) Creates a translating protocol adapter.- Parameters:
outputChannel- the name of the input channel. Further semantics is implied/restrictions are imposed by the underlying protocol.outputTranslator- the output translatorinputChannel- the name of the input channel. Further semantics is implied/restrictions are imposed by the underlying protocol.inputTranslator- the input translator
-
-
Method Details
-
getInputChannel
Description copied from interface:ChannelProtocolAdapterReturns the name of the input channel. Further semantics is implied/restrictions are imposed by the underlying protocol.- Specified by:
getInputChannelin interfaceChannelProtocolAdapter<O,I, CO, CI> - Returns:
- the name of the input channel
-
getOutputChannel
Description copied from interface:ChannelProtocolAdapterReturns the name of the output channel. Further semantics is implied/restrictions are imposed by the underlying protocol.- Specified by:
getOutputChannelin interfaceChannelProtocolAdapter<O,I, CO, CI> - Returns:
- the name of the output channel
-