urv.emulator.topology
Class AddressDoubleMap<K1,K2>

java.lang.Object
  extended by urv.emulator.topology.AddressDoubleMap<K1,K2>

public class AddressDoubleMap<K1,K2>
extends java.lang.Object

Author:
Marcel Arrufat Arias

Constructor Summary
AddressDoubleMap()
           
 
Method Summary
 void addDoubleMap(K1 key1, K2 key2)
          Creates a double relationship between this InetAddress and node number
 K1 getInetAddress(K2 key2)
          Returns the InetAddress of the node from the given node number
 K2 getNodeNumber(K1 key1)
          Returns the node number of the node from the given InetAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressDoubleMap

public AddressDoubleMap()
Method Detail

addDoubleMap

public void addDoubleMap(K1 key1,
                         K2 key2)
Creates a double relationship between this InetAddress and node number


getInetAddress

public K1 getInetAddress(K2 key2)
Returns the InetAddress of the node from the given node number

Parameters:
nodeNumber -
Returns:

getNodeNumber

public K2 getNodeNumber(K1 key1)
Returns the node number of the node from the given InetAddress

Parameters:
addr -
Returns: