|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdesmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Entity
verinec.netsim.entities.packets.Packet
public abstract class Packet
A minimal Packet with Source, Destination, Age and PacketID. The PacketID is a automatic created unique id.
| Field Summary | |
|---|---|
private int |
age
|
private IAddress |
dstAddress
|
private String |
packetID
|
private IAddress |
srcAddress
|
| Constructor Summary | |
|---|---|
Packet(Model owner)
creates a new packet. |
|
| Method Summary | |
|---|---|
abstract Object |
clone()
|
int |
getAge()
gets the packets age |
IAddress |
getDstAddress()
the packets destimation address |
String |
getPacketID()
gets the packets id |
abstract Object |
getPayload()
gets the packets payload |
abstract String |
getProcessorName()
gets the name of the processor that will process this packet |
IAddress |
getSrcAddress()
gets the packets source address |
void |
incrAge(int amount)
increments the packets age |
void |
setAge(int i)
sets the packets age |
void |
setDstAddress(IAddress dstAddress)
sets the packets destimation address |
protected void |
setPacketID(String string)
sets the packets id |
void |
setSrcAddress(IAddress srcAddress)
sets the packets source address |
String |
toString()
This returns a String representation of the Packet. |
| 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 |
| Field Detail |
|---|
private IAddress dstAddress
private IAddress srcAddress
private int age
private String packetID
| Constructor Detail |
|---|
public Packet(Model owner)
owner - a model| Method Detail |
|---|
public void incrAge(int amount)
amount - a amount of timepublic int getAge()
public void setAge(int i)
i - the packets agepublic abstract Object getPayload()
public abstract String getProcessorName()
public IAddress getDstAddress()
public void setDstAddress(IAddress dstAddress)
dstAddress - the packets destimation addresspublic IAddress getSrcAddress()
public void setSrcAddress(IAddress srcAddress)
srcAddress - the packets source address
public abstract Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionObject.clone()public String getPacketID()
protected void setPacketID(String string)
string - a idpublic String toString()
toString in class NamedObject
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||