|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFnbEndToEndPath
public class FnbEndToEndPath
This class keeps information which are common to all network packets. When a packet is dropped in a router, the router must inform the user/owner about this case. Since many packets from the same gridlet may be dropped, the router only sends one event for the whole process, not for each packet. Thus, we put all of the common information (e.g. source and destination IDs) into this class.
| Constructor Summary | |
|---|---|
FnbEndToEndPath(int destID,
int srcID,
int classType,
int totalPkts)
Creates a new object of this class. |
|
FnbEndToEndPath(int destID,
int srcID,
int classType,
int totalPkts,
int glID)
Creates a new object of this class. |
|
FnbEndToEndPath(int destID,
int srcID,
int classType,
int totalPkts,
int glID,
boolean isFile)
Creates a new object of this class. |
|
| Method Summary | |
|---|---|
int |
getClasstype()
Gets the classtype of a connection. |
int |
getDest()
Gets the destination id of a connection. |
int |
getObjectID()
Gets the gridlet/file id of a connection. |
int |
getSrc()
Gets the source id of a connection. |
int |
getTotalPkts()
Gets the total number of packets of a connection. |
boolean |
isFile()
Checks whether this packet contains a file or not |
void |
setClasstype(int classType)
Sets the network service level (or classtype) for a connection. |
void |
setDest(int id)
Sets the destination id for a connection. |
void |
setObjectID(int id)
Sets the gridlet/file id of a connection. |
void |
setSrc(int sourceID)
Sets the source id for a connection. |
void |
setTotalPkts(int total)
Sets the total packets for a connection. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FnbEndToEndPath(int destID,
int srcID,
int classType,
int totalPkts,
int glID)
FnbOutput class.
destID - destination idsrcID - source idclassType - network service leveltotalPkts - total number of packets this connection is made ofglID - the gridlet/file id
public FnbEndToEndPath(int destID,
int srcID,
int classType,
int totalPkts,
int glID,
boolean isFile)
FnbOutput class.
destID - destination idsrcID - source idclassType - network service leveltotalPkts - total number of packets this connection is made ofglID - the gridlet/file idisFile - true if it contains a file, false otherwise
public FnbEndToEndPath(int destID,
int srcID,
int classType,
int totalPkts)
FnbOutput class.
destID - destination idsrcID - source idclassType - network service leveltotalPkts - total number of packets this connection is made of| Method Detail |
|---|
public void setDest(int id)
id - the destination idpublic void setSrc(int sourceID)
sourceID - the source idpublic void setClasstype(int classType)
classType - the network service level idpublic void setTotalPkts(int total)
total - total packetspublic boolean isFile()
public int getSrc()
public int getDest()
public int getClasstype()
public int getTotalPkts()
public void setObjectID(int id)
id - the gridlet id of the connectionpublic int getObjectID()
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||