|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectgridsim.net.RIPAdPack
This class is used to send link state advertisements to other routers. Only hosts are advertised, not routers.
Constructor Summary | |
RIPAdPack(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 RIPAdPack(String sender, Collection c)
sender
- the sender's namec
- a Collection objectMethod Detail |
public String getSender()
public void setSender(String sender)
sender
- the sender's namepublic Collection getHosts()
public int getHopCount()
public void incrementHopCount()
public void setHopCount(int hopcount)
public String toString()
|
GridSim v3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |