|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectsource_pktNum
public class source_pktNum
This class is used by the FnbInput entity,
to make sure that all Gridlet packets arrive at the destination.
FnbInput| Constructor Summary | |
|---|---|
source_pktNum(int sourceID,
int gridletID)
Creates an object of this class. |
|
| Method Summary | |
|---|---|
void |
addNumOfArrivedPkts()
Adds the number of received packets by 1. |
int |
getGridletID()
Gets the gridlet id |
int |
getNumOfPacket()
Gets the number of packets already received |
int |
getSourceID()
Gets the source ID of the gridlet |
boolean |
getStatus()
Checks if the gridlet packets have arrived properly or not. |
void |
setGridletID(int gridletID)
Sets the gridlet id |
void |
setNumOfPacket(int num)
Sets the number of packets |
void |
setSourceID(int sourceID)
Sets the source ID |
void |
setStatus(boolean status)
Sets the status of the incoming gridlet packets. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public source_pktNum(int sourceID,
int gridletID)
sourceID - the source IDgridletID - the gridlet ID that this packet belongs to| Method Detail |
|---|
public int getSourceID()
public int getNumOfPacket()
public boolean getStatus()
public void setSourceID(int sourceID)
sourceID - the source ID of this gridletpublic void setStatus(boolean status)
status - true if all the packets of a gridlet have
arrived properly, false otherwise.public void setNumOfPacket(int num)
num - the number of packets of a gridletpublic void setGridletID(int gridletID)
gridletID - gridlet idpublic int getGridletID()
public void addNumOfArrivedPkts()
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||