|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.repository.neighbourhood.TwoHopSet
public final class TwoHopSet
The class implements the two hop set, as specified in OLSRv2.
Method Summary | |
---|---|
java.lang.Object |
clone()
Implementation of the singleton design pattern. |
java.util.ArrayList<TwoHopTuple> |
getTuples()
Returns the two hop tuples |
java.util.ArrayList<TwoHopTuple> |
getTuples(CidrAddress cidrBlock)
The method gets all two hop tuples associated with a certain local CIDR address |
static TwoHopSet |
getTwoHopSet()
Implementation of the singleton design pattern |
boolean |
populate(CidrAddress receivingCAddress,
CidrAddress sendingCAddress,
long validityTime,
java.util.ArrayList<CidrAddress> cidrAddresses,
java.util.ArrayList<Tlv> tlvs)
Populates the two hop set as suggested in the specification |
boolean |
purge()
The method purges the set, deleting expired entries |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TwoHopSet getTwoHopSet()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean populate(CidrAddress receivingCAddress, CidrAddress sendingCAddress, long validityTime, java.util.ArrayList<CidrAddress> cidrAddresses, java.util.ArrayList<Tlv> tlvs)
receivingCAddress
- the receiving CIDR addresssendingCAddress
- the sending CIDR addressvalidityTime
- the validity timecidrAddresses
- the CIDR addresstlvs
- the TLVs
public java.util.ArrayList<TwoHopTuple> getTuples(CidrAddress cidrBlock)
cidrBlock
- the local CIDR address
public boolean purge()
public java.util.ArrayList<TwoHopTuple> getTuples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |