public class PortConnector<Id> extends java.lang.Object
Constructor and Description |
---|
PortConnector()
Construct a new PortConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all connections.
|
void |
createConnections(IOPort port)
Create connections for a port.
|
Id |
getNextId(IOPort port,
int channel)
Get the next Id for an input port and channel.
|
void |
receiveId(IOPort receiverPort,
int channel,
Id pass)
A port should receive an id on a specific channel.
|
void |
refillId(IOPort port,
int channel)
Restore the previous Id to a port and channel.
|
void |
sendIdToConnections(IOPort senderPort,
int channel,
Id pass)
Send an Id to an output port's connections on a channel.
|
public PortConnector()
public void clear()
public void createConnections(IOPort port) throws RecordingException
RecordingException
public Id getNextId(IOPort port, int channel) throws RecordingException
RecordingException
public void refillId(IOPort port, int channel) throws RecordingException
RecordingException
public void receiveId(IOPort receiverPort, int channel, Id pass) throws RecordingException
RecordingException
public void sendIdToConnections(IOPort senderPort, int channel, Id pass) throws RecordingException
RecordingException