Interface ChannelAdapterSelector<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 Superinterfaces:
AdapterSelector<O,I, CO, CI>
Selects a protocol adapter based on the given machine data for channel connectors.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface de.iip_ecosphere.platform.connectors.AdapterSelector
AdapterSelector.AdapterProvider<O,I, CO, CI> -
Field Summary
Fields inherited from interface de.iip_ecosphere.platform.connectors.AdapterSelector
DEFAULT_CHANNEL -
Method Summary
Modifier and TypeMethodDescriptiondefault voidInitializes the adapter selector.voidInitializes the adapter selector.selectNorthInput(CI data) Returns the responsible protocol adapter for northbound input.selectSouthOutput(String channel, O data) Returns the responsible protocol adapter for southbound output.
-
Method Details
-
selectSouthOutput
Description copied from interface:AdapterSelectorReturns the responsible protocol adapter for southbound output.- Specified by:
selectSouthOutputin interfaceAdapterSelector<O,I, CO, CI> - Parameters:
channel- the channeldatawas received from, may beAdapterSelector.DEFAULT_CHANNELdata- the data object- Returns:
- the protocol adapter (must not be null)
-
selectNorthInput
Description copied from interface:AdapterSelectorReturns the responsible protocol adapter for northbound input. So far, the channel is implicit.- Specified by:
selectNorthInputin interfaceAdapterSelector<O,I, CO, CI> - Parameters:
data- the data object- Returns:
- the protocol adapter (must not be null)
-
init
Initializes the adapter selector.- Parameters:
provider- the adapter information provider
-
init
Initializes the adapter selector.- Specified by:
initin interfaceAdapterSelector<O,I, CO, CI> - Parameters:
provider- the adapter information provider- Throws:
IllegalArgumentException- ifprovidernot of typeChannelAdapterSelector.ChannelAdapterProvider
-