|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.repository.topology.TopologyTuple
public class TopologyTuple
The class implements the topology set, as specified in OLSRv2.
Constructor Summary | |
---|---|
TopologyTuple(java.net.InetAddress destination,
java.net.InetAddress lastHop,
int ansn)
Constructor |
Method Summary | |
---|---|
int |
getAnsn()
Returns the ANSN |
java.net.InetAddress |
getDestination()
Returns the destination IP address |
java.net.InetAddress |
getLastHop()
Returns the last hop |
long |
getTime()
Returns the time |
void |
setTime(long time)
Sets the time |
java.lang.String |
toString()
Method providing a nicely formatted String of the topology tuple |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TopologyTuple(java.net.InetAddress destination, java.net.InetAddress lastHop, int ansn)
destination
- the destination IP addresslastHop
- the IP address of the last hopansn
- the ANSNMethod Detail |
---|
public java.net.InetAddress getDestination()
public java.net.InetAddress getLastHop()
public int getAnsn()
public long getTime()
public void setTime(long time)
time
- the timepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |