verinec.netsim.entities.packets
Class DLPacket

java.lang.Object
  extended by desmoj.core.simulator.NamedObject
      extended by desmoj.core.simulator.ModelComponent
          extended by desmoj.core.simulator.Schedulable
              extended by desmoj.core.simulator.Entity
                  extended by verinec.netsim.entities.packets.Packet
                      extended by verinec.netsim.entities.packets.Leaf
                          extended by verinec.netsim.entities.packets.DLPacket
All Implemented Interfaces:
Cloneable

public class DLPacket
extends Leaf

Creates a new DataLink Packet, Ethernet 802.3

Version:
$Revision:835 $
Author:
Dominik Jungo

Constructor Summary
DLPacket(Model owner, IAddress nextHop)
          Creates a new DataLink Packet
DLPacket(Model owner, IAddress srcaddress, IAddress dstaddress)
          Creates a new DataLink Packet
 
Method Summary
 String getProcessorName()
          gets the name of the processor that will process this packet
protected  Leaf selfClone()
           
 
Methods inherited from class verinec.netsim.entities.packets.Leaf
clone, getPayload, setPayload, toString
 
Methods inherited from class verinec.netsim.entities.packets.Packet
getAge, getDstAddress, getPacketID, getSrcAddress, incrAge, setAge, setDstAddress, setPacketID, setSrcAddress
 
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.Schedulable
cancel, isCurrent, isScheduled, nextEntity, nextEvent, nextSchedulable, rename, reSchedule, scheduledAt
 
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
 
Methods inherited from class desmoj.core.simulator.NamedObject
getName, getQuotedName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLPacket

public DLPacket(Model owner,
                IAddress nextHop)
Creates a new DataLink Packet

Parameters:
owner - a Model
nextHop - the address of the next hop

DLPacket

public DLPacket(Model owner,
                IAddress srcaddress,
                IAddress dstaddress)
Creates a new DataLink Packet

Parameters:
owner - a Model
srcaddress - the address of the source of this packet
dstaddress - the address of the destination of this packet
Method Detail

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()

selfClone

protected Leaf selfClone()
Specified by:
selfClone in class Leaf

Copyright © 2005 Verinec, DIUF