Interface WidgetSocketMatchStrategy
-
- All Known Implementing Classes:
PerfectMatch,TypeMatch
public interface WidgetSocketMatchStrategyStrategy 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetStrategyCode()Identifier of the strategy.booleanmatches(WidgetSocket socketA, WidgetSocket socketB)Method checks if two sockets match, ie.
-
-
-
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 socketsocketB- a socket- Returns:
- true if the two sockets match
-
-