urv.olsr.data.routing
Class RoutingTableEntry

java.lang.Object
  extended by urv.olsr.data.routing.RoutingTableEntry

public class RoutingTableEntry
extends java.lang.Object

Data unit to store the route between to neighbor nodes.

Author:
Marcel Arrufat Arias

Constructor Summary
RoutingTableEntry()
           
RoutingTableEntry(OLSRNode destAddr, OLSRNode nextAddr, int hops)
           
 
Method Summary
 java.lang.Object clone()
           
 OLSRNode getDestAddr()
           
 int getHops()
           
 OLSRNode getNextAddr()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingTableEntry

public RoutingTableEntry()

RoutingTableEntry

public RoutingTableEntry(OLSRNode destAddr,
                         OLSRNode nextAddr,
                         int hops)
Parameters:
destAddr -
nextAddr -
hops -
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getDestAddr

public OLSRNode getDestAddr()
Returns:
Returns the destAddr.

getHops

public int getHops()
Returns:
Returns the hops.

getNextAddr

public OLSRNode getNextAddr()
Returns:
Returns the nextAddr.