|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.repository.neighbourhood.LinkSet
public final class LinkSet
The class implements the link set, as specified in OLSRv2.
Method Summary | |
---|---|
java.lang.Object |
clone()
Implementation of the singleton design pattern. |
boolean |
contains(CidrAddress from)
Checks if the link set has a link tuple with a certain local CIDR address |
boolean |
contains(CidrAddress from,
CidrAddress to,
Values status)
Checks if the link set has a link tuple with a certain local CIDR address, neighbour CIDR address and link status |
static LinkSet |
getLinkSet()
Implementation of the singleton design pattern |
java.util.TreeSet<LinkTuple> |
getTuples()
Returns the link tuples in the link set |
java.util.ArrayList<LinkTuple> |
getTuples(CidrAddress cidrBlock)
Searches for and returns link tuples having a certain local CIDR address |
java.util.ArrayList<LinkTuple> |
getTuples(Values v)
Searches for and returns link tuples having a certain TLV value |
Values |
getWillingness(CidrAddress from)
Returns the willigness of a link tuple with a certain local CIDR address |
boolean |
populate1(CidrAddress receivingCAddress,
CidrAddress sourceCAddress,
long validityTime)
Populating the link set witht the addresses found in the LIB. |
void |
populate2(CidrAddress receivingCAddress,
CidrAddress sourceCAddress,
long validityTime,
long intervalTime,
Values willingness,
java.util.ArrayList<CidrAddress> cidrAddresses,
java.util.ArrayList<Tlv> tlvs)
Populating the link set with the addresses found in the address blocks other than the LIB. |
boolean |
purge()
Purges the entries in the set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LinkSet getLinkSet()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean purge()
public boolean populate1(CidrAddress receivingCAddress, CidrAddress sourceCAddress, long validityTime)
receivingCAddress
- the receiving CIDR addresssourceCAddress
- the source CIDR addressvalidityTime
- the validity time
public void populate2(CidrAddress receivingCAddress, CidrAddress sourceCAddress, long validityTime, long intervalTime, Values willingness, java.util.ArrayList<CidrAddress> cidrAddresses, java.util.ArrayList<Tlv> tlvs)
receivingCAddress
- the receiving CIDR addresssourceCAddress
- the source CIDR addressvalidityTime
- the validity timeintervalTime
- the interval timewillingness
- the willingnesscidrAddresses
- the CIDR addressestlvs
- the TLVspublic java.util.ArrayList<LinkTuple> getTuples(CidrAddress cidrBlock)
cidrBlock
- the local CIDR address to look for
public java.util.ArrayList<LinkTuple> getTuples(Values v)
v
- the TLV value to look for
public Values getWillingness(CidrAddress from)
from
- the local CIDR address
public boolean contains(CidrAddress from)
from
- the local CIDR address to look for
public boolean contains(CidrAddress from, CidrAddress to, Values status)
from
- the local CIDR addressto
- the neighbour CIDR addressstatus
- the link status
public java.util.TreeSet<LinkTuple> getTuples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |