net.jolsrv2.repository.topology
Class RoutingTuple

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

public class RoutingTuple
extends java.lang.Object

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

Author:
Andreas Schjønhaug

Constructor Summary
RoutingTuple(java.net.InetAddress destination, java.net.InetAddress next, int distance, java.net.InetAddress localIfaceAddr)
          Constructor
 
Method Summary
 java.net.InetAddress getDestination()
          Returns the destination IP address
 int getDistance()
          Returns the distance
 java.net.InetAddress getLocalIfaceAddr()
          Return the local interface IP address
 java.net.InetAddress getNext()
          Return the next IP address
 java.lang.String toString()
          Return the entry nicely formatted
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoutingTuple

public RoutingTuple(java.net.InetAddress destination,
                    java.net.InetAddress next,
                    int distance,
                    java.net.InetAddress localIfaceAddr)
Constructor

Parameters:
destination - the destination IP address
next - the next IP address
distance - the ditance
localIfaceAddr - the local interface IP address
Method Detail

getDestination

public java.net.InetAddress getDestination()
Returns the destination IP address

Returns:
the destination IP address

getNext

public java.net.InetAddress getNext()
Return the next IP address

Returns:
the next IP address

getDistance

public int getDistance()
Returns the distance

Returns:
the distance

getLocalIfaceAddr

public java.net.InetAddress getLocalIfaceAddr()
Return the local interface IP address

Returns:
the local interface IP address

toString

public java.lang.String toString()
Return the entry nicely formatted

Overrides:
toString in class java.lang.Object
Returns:
string the nicely formatted entry