net.jolsrv2.repository.neighbourhood
Class MprSet

java.lang.Object
  extended by net.jolsrv2.repository.neighbourhood.MprSet

public class MprSet
extends java.lang.Object

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

Author:
Andreas Schjønhaug

Constructor Summary
MprSet(CidrAddress ifaceCAddress)
          Constructor
 
Method Summary
 java.util.ArrayList<java.net.InetAddress> getAddresses()
          Returns the IP addresses
 boolean isEmpty()
          Determines whether the MPR set is empty or not
 void populate()
          Populates the MPR set, using the heuristics proposed in the specification.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MprSet

public MprSet(CidrAddress ifaceCAddress)
Constructor

Parameters:
ifaceCAddress - the interface CIDR address
Method Detail

populate

public void populate()
Populates the MPR set, using the heuristics proposed in the specification.


getAddresses

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

Returns:
the IP addresses

isEmpty

public boolean isEmpty()
Determines whether the MPR set is empty or not

Returns:
true if the MPR set is empty