|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodeblocks.SocketRule
public class SocketRule
SocketRule
checks if the two sockets being matched can connect simply by checking if the socket/plug
match in kind.
Constructor Summary | |
---|---|
SocketRule()
|
Method Summary | |
---|---|
boolean |
canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link by matching their socket kind; false if not. |
boolean |
isMandatory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketRule()
Method Detail |
---|
public boolean canLink(Block block1, Block block2, BlockConnector socket1, BlockConnector socket2)
canLink
in interface LinkRule
block1
- the associated Block
of socket1block2
- the associated Block
of socket2socket1
- a Socket
or plug of block1socket2
- a Socket
or plug of block2
public boolean isMandatory()
isMandatory
in interface LinkRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |