|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFloodAdPack
public class FloodAdPack
This class is used to send link state advertisements to other routers. Only hosts are advertised, not routers.
| Constructor Summary | |
|---|---|
FloodAdPack(String sender,
Collection c)
Allocates a new object |
|
| Method Summary | |
|---|---|
int |
getHopCount()
Gets the number of hops |
Collection |
getHosts()
Gets a list of hosts |
String |
getSender()
Gets the sender's name |
void |
incrementHopCount()
Increments the hop counter by one |
void |
setHopCount(int hopcount)
Sets the hopcount |
void |
setSender(String sender)
Set the sender's name |
String |
toString()
Represents the information of this class into String |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FloodAdPack(String sender,
Collection c)
sender - the sender's namec - a Collection object| Method Detail |
|---|
public String getSender()
public void setSender(String sender)
sender - the sender's namepublic Collection getHosts()
public int getHopCount()
public void setHopCount(int hopcount)
public void incrementHopCount()
public String toString()
toString in class Object
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||