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,
java.lang.String name,
SimNode parentNode) |
IPDemultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode,
int startLabel) |
IPDemultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode,
int startLabel,
int labelModulus,
IPDemultiplexer.IPDemuxMode mode) |
IPDemultiplexer(int noOfPorts,
java.lang.String name,
SimNode parentNode,
int startLabel,
IPDemultiplexer.IPDemuxMode mode) |
IPDemultiplexer(java.lang.String name,
SimNode parentNode) |
IPDemultiplexer(java.lang.String name,
SimNode parentNode,
int startLabel) |
IPDemultiplexer(java.lang.String name,
SimNode parentNode,
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, java.lang.String name, SimNode parentNode, int startLabel, int labelModulus, IPDemultiplexer.IPDemuxMode mode)
public IPDemultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode, int startLabel, IPDemultiplexer.IPDemuxMode mode)
public IPDemultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode, int startLabel)
public IPDemultiplexer(int noOfPorts, java.lang.String name, SimNode parentNode)
public IPDemultiplexer(java.lang.String name, SimNode parentNode, int startLabel, int labelModulus, IPDemultiplexer.IPDemuxMode mode)
public IPDemultiplexer(java.lang.String name, SimNode parentNode, int startLabel)
public IPDemultiplexer(java.lang.String name, SimNode parentNode)
protected Port determineOutputPort(Message msg)
determineOutputPort
in class LabelDemultiplexer