|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectfirstLastPacketsGridlet
GridletPackets instead.
public class firstLastPacketsGridlet
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 | |
|---|---|
firstLastPacketsGridlet()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
firstLastPacketsGridlet(int firstPacketID,
int lastPacketID)
Deprecated. As of GridSim 5.0, this class has been deprecated. Use GridletPackets instead. |
int |
getFirstPacketID()
Deprecated. Gets the id of the first packet. |
int |
getID()
Deprecated. Gets a file or gridlet ID. NOTE: If isFile() denotes true, then it is a file ID,
false otherwise |
int |
getLastPacketID()
Deprecated. Gets the id of the last packet. |
boolean |
isFile()
Deprecated. Determines whether this class stores a file ID or a gridlet ID |
void |
setFileID(int fileID)
Deprecated. Sets the file id. |
void |
setFirstPacketID(int firstID)
Deprecated. Sets the id of the first packet. |
void |
setGridletID(int gridletID)
Deprecated. Sets the gridlet id. |
void |
setLastPacketID(int lastID)
Deprecated. 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 firstLastPacketsGridlet()
| Method Detail |
|---|
public void firstLastPacketsGridlet(int firstPacketID,
int lastPacketID)
GridletPackets instead.
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 | |||||||||