public interface LinkRule
LinkRule specifies a rule for Block linking.| Modifier and Type | Method and Description |
|---|---|
boolean |
canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link; false if not
|
boolean |
isMandatory() |
boolean canLink(Block block1, Block block2, BlockConnector socket1, BlockConnector socket2)
block1 - the associated Block of socket1block2 - the associated Block of socket2socket1 - a Socket of block1socket2 - a Socket of block2boolean isMandatory()