verinec.netsim.entities.packets
Class IPPacket
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Entity
verinec.netsim.entities.packets.Packet
verinec.netsim.entities.packets.Leaf
verinec.netsim.entities.packets.IPPacket
- All Implemented Interfaces:
- Cloneable
public class IPPacket
- extends Leaf
a IP Packet
- Version:
- $Revision:835 $
- Author:
- Dominik Jungo
| Methods inherited from class desmoj.core.simulator.Entity |
getPriority, isEqual, isLarger, isLargerOrEqual, isNotEqual, isSimProcess, isSmaller, isSmallerOrEqual, numQueues, schedule, scheduleAfter, scheduleBefore, setPriority |
| Methods inherited from class desmoj.core.simulator.ModelComponent |
current, currentEntity, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn |
TTL
private int TTL
Protocol
private String Protocol
IPPacket
public IPPacket(Model owner,
IPAddress srcaddress,
IPAddress dstaddress)
- Creates a new IPPacket
- Parameters:
owner - a Modelsrcaddress - the source address of the ip packetdstaddress - the destination address of the ip packet
getProcessorName
public String getProcessorName()
- Description copied from class:
Packet
- gets the name of the processor that will process this packet
- Specified by:
getProcessorName in class Packet
- Returns:
- the name of the processor that will process this packet
- See Also:
Packet.getProcessorName()
getTTL
public int getTTL()
- gets the time to live value of the packet
- Returns:
- the time to live value of the packet
setTTL
public void setTTL(int i)
- sets the time to live value of the packet
- Parameters:
i - a time value
getProtocol
public String getProtocol()
- gets the overlying protocol
- Returns:
- the overlying protocol
setProtocol
public void setProtocol(String protocol)
- sets the overlying protocol
- Parameters:
protocol - a protocol
selfClone
protected Leaf selfClone()
- Specified by:
selfClone in class Leaf