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 twoTypeTranslatorinstances for channeled protocol adaptation.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringinputChannelprivate java.lang.StringoutputChannel
-
Constructor Summary
Constructors Constructor Description ChannelTranslatingProtocolAdapter(java.lang.String outputChannel, ConnectorOutputTypeTranslator<O,CO> outputTranslator, java.lang.String inputChannel, ConnectorInputTypeTranslator<CI,I> inputTranslator)Creates a translating protocol adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInputChannel()Returns the name of the input channel.java.lang.StringgetOutputChannel()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, setModelAccess
-
Methods inherited from class de.iip_ecosphere.platform.connectors.types.AbstractProtocolAdapter
getModelAccess
-
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.ProtocolAdapter
adaptInput, adaptOutput, getConnectorInputType, getConnectorOutputType, getModelAccess, getProtocolInputType, getProtocolOutputType, initializeModelAccess, setModelAccess
-
-
-
-
Constructor Detail
-
ChannelTranslatingProtocolAdapter
public ChannelTranslatingProtocolAdapter(java.lang.String outputChannel, ConnectorOutputTypeTranslator<O,CO> outputTranslator, java.lang.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 Detail
-
getInputChannel
public java.lang.String 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
public java.lang.String 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
-
-