public class StdMultiplexer extends Multiplexer
AddPort
and removed via RemovePort
.Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected java.util.List<InputPort> |
inputPorts |
currentPort, lastPort, outputPort
portAliases, ports, simNode
Constructor and Description |
---|
StdMultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode) |
StdMultiplexer(java.lang.String name,
SimNode parentNode) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addPort()
Use "input <++N>" as port name
|
void |
addPort(java.lang.String portName) |
boolean |
handleIsMessageAvailable(Port port) |
void |
removePort(java.lang.String portName) |
handleMessageIndication
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected final java.util.List<InputPort> inputPorts
public StdMultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode)
public StdMultiplexer(java.lang.String name, SimNode parentNode)
public boolean handleIsMessageAvailable(Port port)
handleIsMessageAvailable
in class Multiplexer
public void addPort(java.lang.String portName)
public java.lang.String addPort()
public void removePort(java.lang.String portName)