public class IPDemultiplexer extends LabelDemultiplexer
IPDemultiplexer
is derived from LabelDemultiplexer
and therefore provides the same functionality with respect to port creation
and management. Instead of using LabelMessage
,
IPDemultiplexer
assumes incoming messages to be of
IPPacket
type. The demux may be configured to consider either
the destination id, source id, type id, or group id to determine the output
port. A start id and a modulus can be defined like in
LabelDemultiplexer
.Modifier and Type | Class and Description |
---|---|
static class |
IPDemultiplexer.IPDemuxMode |
Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected IPDemultiplexer.IPDemuxMode |
mode |
modulus, startId
outputPorts
inputPort
portAliases, ports, simNode
Constructor and Description |
---|
IPDemultiplexer(int noOfPorts,
SimNode ownNode) |
IPDemultiplexer(int noOfPorts,
SimNode ownNode,
int startLabel) |
IPDemultiplexer(int noOfPorts,
SimNode ownNode,
int startLabel,
int labelModulus,
IPDemultiplexer.IPDemuxMode mode) |
IPDemultiplexer(int noOfPorts,
SimNode ownNode,
int startLabel,
IPDemultiplexer.IPDemuxMode mode) |
IPDemultiplexer(SimNode ownNode) |
IPDemultiplexer(SimNode ownNode,
int startLabel) |
IPDemultiplexer(SimNode ownNode,
int startLabel,
int labelModulus,
IPDemultiplexer.IPDemuxMode mode) |
Modifier and Type | Method and Description |
---|---|
protected Port |
determineOutputPort(Message msg) |
removePort
addPort, addPort, getOutput
getInput, handleGetMessage, handleIsMessageAvailable
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected final IPDemultiplexer.IPDemuxMode mode
public IPDemultiplexer(int noOfPorts, SimNode ownNode, int startLabel, int labelModulus, IPDemultiplexer.IPDemuxMode mode)
public IPDemultiplexer(int noOfPorts, SimNode ownNode, int startLabel, IPDemultiplexer.IPDemuxMode mode)
public IPDemultiplexer(int noOfPorts, SimNode ownNode, int startLabel)
public IPDemultiplexer(int noOfPorts, SimNode ownNode)
public IPDemultiplexer(SimNode ownNode, int startLabel, int labelModulus, IPDemultiplexer.IPDemuxMode mode)
public IPDemultiplexer(SimNode ownNode, int startLabel)
public IPDemultiplexer(SimNode ownNode)
protected Port determineOutputPort(Message msg)
determineOutputPort
in class LabelDemultiplexer