Interface WidgetSocketMatchStrategy

  • All Known Implementing Classes:
    PerfectMatch, TypeMatch

    public interface WidgetSocketMatchStrategy
    Strategy used to determine if two sockets match. Usually it means that the sockets have matching types and direction (in/out) plus some additional, strategy specific criteria.
    • Method Detail

      • getStrategyCode

        java.lang.String getStrategyCode()
        Identifier of the strategy. It should be unique.
        Returns:
        identifier of the strategy
      • matches

        boolean matches​(WidgetSocket socketA,
                        WidgetSocket socketB)
        Method checks if two sockets match, ie. may be connected.
        Parameters:
        socketA - a socket
        socketB - a socket
        Returns:
        true if the two sockets match