public class LabelDemultiplexer extends StdDemultiplexer
LabelDemultiplexer
provides the method
GetOutputPort
which returns an output port dependent on the
label contained in a label message. An offset is considered if a start label
is given. If a modulo > 1 is given the lower bits are not significant,
i.e. the port index returned is given by (label - start label) div modulus.Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected int |
modulus |
protected int |
startId |
outputPorts
inputPort
portAliases, ports, simNode
Constructor and Description |
---|
LabelDemultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode) |
LabelDemultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode,
int startLabel) |
LabelDemultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode,
int startLabel,
int labelModulus) |
LabelDemultiplexer(java.lang.String name,
SimNode parentNode) |
LabelDemultiplexer(java.lang.String name,
SimNode parentNode,
int startLabel) |
LabelDemultiplexer(java.lang.String name,
SimNode parentNode,
int startLabel,
int labelModulus) |
Modifier and Type | Method and Description |
---|---|
protected Port |
determineOutputPort(Message msg) |
void |
removePort(java.lang.String portName)
Not supported by this implementation.
|
addPort, addPort, getOutput
getInput, handleGetMessage, handleIsMessageAvailable
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
public LabelDemultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode, int startLabel, int labelModulus)
public LabelDemultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode, int startLabel)
public LabelDemultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode)
public LabelDemultiplexer(java.lang.String name, SimNode parentNode, int startLabel, int labelModulus)
public LabelDemultiplexer(java.lang.String name, SimNode parentNode, int startLabel)
public LabelDemultiplexer(java.lang.String name, SimNode parentNode)
protected Port determineOutputPort(Message msg)
determineOutputPort
in class Demultiplexer
public void removePort(java.lang.String portName)
removePort
in class StdDemultiplexer