net.jolsrv2.repository.topology
Class RoutingSet

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

public final class RoutingSet
extends java.lang.Object

The class implements the routing set, as specified in OLSRv2.

Author:
Andreas Schjønhaug

Method Summary
 void calculate()
          Calculates the routing set as suggested in the implementation
 java.lang.Object clone()
          Implementation of the singleton design pattern.
 void deleteTuple(java.net.InetAddress destination)
          Deletes a routing tuple with a given destination IP address
static RoutingSet getRoutingSet()
          Implementation of the singleton design pattern
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRoutingSet

public static RoutingSet getRoutingSet()
Implementation of the singleton design pattern

Returns:
the routing 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

calculate

public void calculate()
Calculates the routing set as suggested in the implementation


deleteTuple

public void deleteTuple(java.net.InetAddress destination)
Deletes a routing tuple with a given destination IP address

Parameters:
destination - the destination IP address