public interface Cable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTROL_CABLE_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
addCableListener(CableListener listener)
Adds a cable listener to this cable.
|
void |
connect(Node sendnode,
Node recnode)
Connect two nodes with this cable.
|
boolean |
connects(Task task) |
boolean |
contains(Node node) |
void |
disconnect()
Disconnect this cable from its nodes.
|
Node |
getReceivingNode() |
Task |
getReceivingTask() |
Node |
getSendingNode() |
Task |
getSendingTask() |
java.lang.String |
getType() |
boolean |
isConnected() |
void |
reconnect(Node recnode)
Reconnects the cable to receive from/send to the specified node
|
void |
removeCableListener(CableListener listener)
Removes a cable listener from this cable.
|
static final java.lang.String CONTROL_CABLE_TYPE
void addCableListener(CableListener listener)
void removeCableListener(CableListener listener)
java.lang.String getType()
boolean isConnected()
Node getSendingNode()
Task getSendingTask()
Node getReceivingNode()
Task getReceivingTask()
boolean contains(Node node)
boolean connects(Task task)
void connect(Node sendnode, Node recnode) throws CableException
CableException
void reconnect(Node recnode) throws CableException
CableException
void disconnect() throws CableException
CableException