net.jolsrv2.repository.topology
Class AttachedNetworkSet

java.lang.Object
  extended by net.jolsrv2.repository.topology.AttachedNetworkSet

public class AttachedNetworkSet
extends java.lang.Object

The class implements the attached network set, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Constructor Summary
AttachedNetworkSet()
          Constructor
 
Method Summary
 java.lang.Object clone()
          Implementation of the singleton design pattern.
static AttachedNetworkSet getAttachedNetworkSet()
          Implementation of the singleton design pattern
 void populate(java.util.ArrayList<CidrAddress> libCAddresses, java.util.ArrayList<CidrAddress> cAddresses, java.util.ArrayList<Tlv> tlvs, int ansn, long validityTime)
          Method populating the symmetric neighbour set, as proposed in the specification
 void purge()
          The method purges the attached network set, deleting expired entries
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachedNetworkSet

public AttachedNetworkSet()
Constructor

Method Detail

getAttachedNetworkSet

public static AttachedNetworkSet getAttachedNetworkSet()
Implementation of the singleton design pattern

Returns:
the attached network set

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Implementation of the singleton design pattern. This method is used to ensure that the class can not be cloned.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

populate

public void populate(java.util.ArrayList<CidrAddress> libCAddresses,
                     java.util.ArrayList<CidrAddress> cAddresses,
                     java.util.ArrayList<Tlv> tlvs,
                     int ansn,
                     long validityTime)
Method populating the symmetric neighbour set, as proposed in the specification

Parameters:
libCAddresses - the LIB CIDR addresses
cAddresses - the CIDR addresses
tlvs - the TLVs
ansn - the ANSN
validityTime - the validity time

purge

public void purge()
The method purges the attached network set, deleting expired entries