Interface AdapterSelector<O,I,CO,CI>

Type Parameters:
O - the output type from the underlying machine/platform
I - the input type to the underlying machine/platform
CO - the output type of the connector
CI - 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
  • Field Details

    • DEFAULT_CHANNEL

      static final String 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

      ProtocolAdapter<O,I,CO,CI> selectSouthOutput(String channel, O data)
      Returns the responsible protocol adapter for southbound output.
      Parameters:
      channel - the channel data was received from, may be DEFAULT_CHANNEL
      data - the data object
      Returns:
      the protocol adapter (must not be null)
    • selectNorthInput

      ProtocolAdapter<O,I,CO,CI> selectNorthInput(CI data)
      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

      void init(AdapterSelector.AdapterProvider<O,I,CO,CI> provider)
      Initializes the adapter selector.
      Parameters:
      provider - the adapter information provider