|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object GridletPackets
public class GridletPackets
This class contains relevant information of a dropped
Gridlet
or File
object.
Since a gridlet or a file is broken into many packets according to the
Maximum Transmission Unit (MTU), this class records the first packet ID,
the last packet ID, and the Gridlet or File ID.
This class is mainly used by the FnbInput
and
FnbOutput
classes.
For example, a gridlet with id = 3 is made of 20 packets, e.g. from
packet id 2 to 21. Then, this class stores the following information:
the first packet number is 2, the last packet number is 21,
the ID is 3, and isFile()
returns false.
Link.DEFAULT_MTU
,
Gridlet
,
File
Constructor Summary | |
---|---|
GridletPackets()
|
Method Summary | |
---|---|
void |
firstLastPacketsGridlet(int firstPacketID,
int lastPacketID)
Creates a new object of this class. |
int |
getFirstPacketID()
Gets the id of the first packet. |
int |
getID()
Gets a file or gridlet ID. NOTE: If isFile() denotes true, then it is a file ID,
false otherwise |
int |
getLastPacketID()
Gets the id of the last packet. |
boolean |
isFile()
Determines whether this class stores a file ID or a gridlet ID |
void |
setFileID(int fileID)
Sets the file id. |
void |
setFirstPacketID(int firstID)
Sets the id of the first packet. |
void |
setGridletID(int gridletID)
Sets the gridlet id. |
void |
setLastPacketID(int lastID)
Sets the id of the last packet. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridletPackets()
Method Detail |
---|
public void firstLastPacketsGridlet(int firstPacketID, int lastPacketID)
firstPacketID
- the first packet idlastPacketID
- the last packet idpublic boolean isFile()
public int getFirstPacketID()
public int getLastPacketID()
public void setLastPacketID(int lastID)
lastID
- the id of the last packet.public void setFirstPacketID(int firstID)
firstID
- the id of the first packet.public void setGridletID(int gridletID)
gridletID
- the gridlet idpublic void setFileID(int fileID)
fileID
- the file idpublic int getID()
isFile()
denotes true, then it is a file ID,
false otherwise
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |