|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.repository.neighbourhood.LinkTuple
public class LinkTuple
The class implements the link tuple, as specified in OLSRv2.
Constructor Summary | |
---|---|
LinkTuple(CidrAddress localCAddress,
CidrAddress neighbourCAddress,
long symTime,
long time)
Constructor |
Method Summary | |
---|---|
int |
compare(LinkTuple l1,
LinkTuple l2)
Compares the components of two link tuples, to determine how they should be sorted |
boolean |
equals(LinkTuple tuple)
Compares the components of two link tuples, to determine if they are equal |
long |
getAsymTime()
Gets the aymmetric time |
CidrAddress |
getLocalCAddress()
Returns the local CIDR address |
CidrAddress |
getNeighbourCAddress()
Returns the neighbour CIDR address |
Values |
getStatus()
Gets the link status |
long |
getSymTime()
Gets the symmetric time |
long |
getTime()
Return the time |
Values |
getWillingness()
Return the willingness |
void |
setAsymTime(long asymTime)
Sets the asymmetric time |
void |
setSymTime(long symTime)
Sets the symmetric time |
void |
setTime(long time)
Sets the time |
void |
setWillingness(Values willingness)
Sets the willingness |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public LinkTuple(CidrAddress localCAddress, CidrAddress neighbourCAddress, long symTime, long time)
localCAddress
- the local CIDR addressneighbourCAddress
- the neighbour CIDR addresssymTime
- the symmetric timetime
- the timeMethod Detail |
---|
public CidrAddress getNeighbourCAddress()
public CidrAddress getLocalCAddress()
public long getTime()
public void setTime(long time)
time
- the timepublic Values getWillingness()
public void setWillingness(Values willingness)
willingness
- the willingnesspublic long getSymTime()
public void setSymTime(long symTime)
symTime
- the symmetric timepublic long getAsymTime()
public void setAsymTime(long asymTime)
asymTime
- the asymmetric timepublic Values getStatus()
public int compare(LinkTuple l1, LinkTuple l2)
compare
in interface java.util.Comparator<LinkTuple>
l1
- the first link tuple to comparel2
- the first link tuple to compare
public boolean equals(LinkTuple tuple)
tuple
- the link tuple to compare with this link tuple
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |