urv.emulator
Class EmulationNeighborData

java.lang.Object
  extended by urv.emulator.EmulationNeighborData

public class EmulationNeighborData
extends java.lang.Object

This class is used to verify the correct topology view of a node. Concretely, it helps to compare the two-hop neighborhood of a node with the information contained in the emulation graph

Author:
Marcel Arrufat Arias

Method Summary
static EmulationNeighborData getInstance()
          Returns an instance of the EmulationNeighborData (Singleton)
 NeighborTable getNeighbortable(OLSRNode node)
          Returns a previous registered neighbor table
 void registerNeighborTable(OLSRNode node, NeighborTable neighborTable)
          Adds a new table to the structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EmulationNeighborData getInstance()
Returns an instance of the EmulationNeighborData (Singleton)

Returns:

registerNeighborTable

public void registerNeighborTable(OLSRNode node,
                                  NeighborTable neighborTable)
Adds a new table to the structure

Parameters:
node -
neighborTable -

getNeighbortable

public NeighborTable getNeighbortable(OLSRNode node)
Returns a previous registered neighbor table

Parameters:
node -
Returns: