|
GridSim v4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This the structure for packets.
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 |
public String toString()
public long getSize()
public boolean setSize(long size)
size
- size of the packet
public int getDestID()
public int getID()
public int getSrcID()
public int getNetServiceType()
public 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 typepublic int getLast()
public void setLast(int last)
last
- an entity ID from the last hoppublic int getTag()
|
GridSim v4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |