net.jolsrv2.repository.topology
Class AdvertisedNeighbourSet

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

public final class AdvertisedNeighbourSet
extends java.lang.Object

The class implements the advertised neighbour set, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Method Summary
 java.lang.Object clone()
          Implementation of the singleton design pattern.
 java.util.ArrayList<java.net.InetAddress> getAddresses()
          Returns the IP addresses
static AdvertisedNeighbourSet getAdvertisedNeighbourSet()
          Implementation of the singleton design pattern
 int getAnsn()
          Returns the advertised neighbour set sequence number
 void populate()
          Method populating the advertsied neighbour set, as proposed in the specification
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAdvertisedNeighbourSet

public static AdvertisedNeighbourSet getAdvertisedNeighbourSet()
Implementation of the singleton design pattern

Returns:
the advertised neighbour 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

getAnsn

public int getAnsn()
Returns the advertised neighbour set sequence number

Returns:
the advertised neighbour set sequence number

getAddresses

public java.util.ArrayList<java.net.InetAddress> getAddresses()
Returns the IP addresses

Returns:
the IP addresses

populate

public void populate()
Method populating the advertsied neighbour set, as proposed in the specification