|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Packet
This class contains the structure for a network packet.
Method Summary | |
---|---|
int |
getDestID()
Returns the destination id of this packet. |
int |
getID()
Returns the ID of this packet |
int |
getLast()
Gets an entity ID from the last hop that this packet has traversed. |
int |
getNetServiceType()
Gets the network service type of this packet |
long |
getSize()
Returns the size of this packet |
int |
getSrcID()
Returns the ID of the source of this packet. |
int |
getTag()
Gets this packet tag |
void |
setLast(int last)
Sets an entity ID from the last hop that this packet has traversed. |
void |
setNetServiceType(int serviceType)
Sets the network service type of this packet. |
boolean |
setSize(long size)
Sets the size of this packet |
String |
toString()
Returns a string describing this packet in detail. |
Method Detail |
---|
String toString()
toString
in class Object
long getSize()
boolean setSize(long size)
size
- size of the packet
int getDestID()
int getID()
int getSrcID()
int getNetServiceType()
void setNetServiceType(int serviceType)
By default, the service type is 0 (zero). It is depends on the packet scheduler to determine the priority of this service level.
serviceType
- this packet's service typeint getLast()
void setLast(int last)
last
- an entity ID from the last hopint getTag()
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |