public class BlockLink
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
This method actually connects the two blocks stored in this BlockLink object.
|
void |
disconnect() |
static BlockLink |
getBlockLink(Workspace workspace,
Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Factory method for creating BlockLink objects
|
java.lang.Long |
getLastBlockID() |
BlockConnector |
getPlug() |
java.lang.Long |
getPlugBlockID() |
BlockConnector |
getSocket() |
java.lang.Long |
getSocketBlockID() |
java.lang.String |
toString() |
public BlockConnector getPlug()
public BlockConnector getSocket()
public java.lang.Long getPlugBlockID()
public java.lang.Long getSocketBlockID()
public java.lang.Long getLastBlockID()
public void connect()
public void disconnect()
public static BlockLink getBlockLink(Workspace workspace, Block block1, Block block2, BlockConnector socket1, BlockConnector socket2)
workspace - The current workspaceblock1 - one of the Block objects in the potential linkblock2 - the other Block objectsocket1 - the BlockConnector from block1socket2 - the BlockConnector from block2public java.lang.String toString()
toString in class java.lang.Object