public interface Packet
Modifier and Type | Method and Description |
---|---|
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.
|
String toString()
long getSize()
boolean setSize(long size)
size
- size of the packetint 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()
Copyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.