Interface AdapterSelector<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 Known Subinterfaces:
ChannelAdapterSelector<O,I, CO, CI>
public interface AdapterSelector<O,I,CO,CI>
Selects a protocol adapter based on the given machine data.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides access to adapter data. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the default channel, in particular for an information-model non-multi-channel connector. -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes 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.
-
Field Details
-
DEFAULT_CHANNEL
The name of the default channel, in particular for an information-model non-multi-channel connector. If there are multiple channels, this may map into the first registered adapter.- See Also:
-
-
Method Details
-
selectSouthOutput
Returns the responsible protocol adapter for southbound output.- Parameters:
channel- the channeldatawas received from, may beDEFAULT_CHANNELdata- the data object- Returns:
- the protocol adapter (must not be null)
-
selectNorthInput
Returns the responsible protocol adapter for northbound input. So far, the channel is implicit.- Parameters:
data- the data object- Returns:
- the protocol adapter (must not be null)
-
init
Initializes the adapter selector.- Parameters:
provider- the adapter information provider
-