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 Detail

      • DEFAULT_CHANNEL

        static final java.lang.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:
        Constant Field Values
    • Method Detail

      • selectSouthOutput

        ProtocolAdapter<O,​I,​CO,​CI> selectSouthOutput​(java.lang.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)