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,
SimNode ownNode) |
LabelDemultiplexer(int noOfPorts,
SimNode ownNode,
int startLabel) |
LabelDemultiplexer(int noOfPorts,
SimNode ownNode,
int startLabel,
int labelModulus) |
LabelDemultiplexer(SimNode ownNode) |
LabelDemultiplexer(SimNode ownNode,
int startLabel) |
LabelDemultiplexer(SimNode ownNode,
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, SimNode ownNode, int startLabel, int labelModulus)
public LabelDemultiplexer(int noOfPorts, SimNode ownNode, int startLabel)
public LabelDemultiplexer(int noOfPorts, SimNode ownNode)
public LabelDemultiplexer(SimNode ownNode, int startLabel, int labelModulus)
public LabelDemultiplexer(SimNode ownNode, int startLabel)
public LabelDemultiplexer(SimNode ownNode)
protected Port determineOutputPort(Message msg)
determineOutputPort
in class Demultiplexer
public void removePort(java.lang.String portName)
removePort
in class StdDemultiplexer