|
|||||||||
| 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
verinec.netsim.entities.packets.Leaf
verinec.netsim.entities.packets.UDPPacket
public class UDPPacket
A UDP Packet
| Field Summary | |
|---|---|
private int |
dstPort
|
private int |
srcPort
|
| Constructor Summary | |
|---|---|
UDPPacket(Model owner,
IPAddress srcaddress,
IPAddress dstaddress,
int srcPort,
int dstPort)
Creates a new UDP Packet |
|
| Method Summary | |
|---|---|
void |
byteArrayToPayload(byte[] bytes)
|
protected String |
createString()
Creates a String, including classname, source, destination, processor and age, used by toString() representing this UDP Packet. |
int |
getDstPort()
gets the destinaton port |
String |
getProcessorName()
gets the name of the processor that will process this packet |
int |
getSrcPort()
gets the source port |
byte[] |
payloadToByteArray()
|
protected Leaf |
selfClone()
|
void |
setDstPort(int dstPort)
sets the destination port |
void |
setSrcPort(int srcPort)
sets the source port |
String |
toString()
This returns a String representation of the Packet. |
| Methods inherited from class verinec.netsim.entities.packets.Leaf |
|---|
clone, getPayload, setPayload |
| 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 |
| Field Detail |
|---|
private int dstPort
private int srcPort
| Constructor Detail |
|---|
public UDPPacket(Model owner,
IPAddress srcaddress,
IPAddress dstaddress,
int srcPort,
int dstPort)
owner - a modelsrcaddress - source of the packetdstaddress - destination of the packetsrcPort - the source portdstPort - the destination port| Method Detail |
|---|
public int getDstPort()
public String getProcessorName()
Packet
getProcessorName in class PacketPacket.getProcessorName()public int getSrcPort()
public void setDstPort(int dstPort)
dstPort - a port numberpublic void setSrcPort(int srcPort)
srcPort - a port numberprotected String createString()
public String toString()
Packet
toString in class LeafLeaf.toString()
public byte[] payloadToByteArray()
throws Exception
Exception
public void byteArrayToPayload(byte[] bytes)
throws Exception
Exceptionprotected Leaf selfClone()
selfClone in class Leaf
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||