gov.nist.antd.merlin.protocol.signaling
Class DynRecovery.HandledRoutesHTable

java.lang.Object
  |
  +--gov.nist.antd.merlin.protocol.signaling.DynRecovery.HandledRoutesHTable
Enclosing class:
DynRecovery

protected class DynRecovery.HandledRoutesHTable
extends java.lang.Object

class used to know if a route is already handled by DynRecovery


Field Summary
private  java.util.Hashtable rtesHashTable
          the HAshTable of handled routes
 
Constructor Summary
DynRecovery.HandledRoutesHTable()
          HandledRoutesHTable default constructor
 
Method Summary
 void addRoute(int routeID)
          addRoute adds a route to the Hashtable
private  java.lang.Integer getRouteEntry(int key)
          getIntKey method used a key in the hashtable
 boolean isRouteHandled(int routeID)
          isRouteHandled test if the route is already handled
 void removeRoute(int routeID)
          removeRoute remove a route from the Hashtable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rtesHashTable

private java.util.Hashtable rtesHashTable
the HAshTable of handled routes

Constructor Detail

DynRecovery.HandledRoutesHTable

public DynRecovery.HandledRoutesHTable()
HandledRoutesHTable default constructor

Method Detail

addRoute

public void addRoute(int routeID)
addRoute adds a route to the Hashtable

Parameters:
routeID - the routeID to add in the HashTable

isRouteHandled

public boolean isRouteHandled(int routeID)
isRouteHandled test if the route is already handled

Parameters:
routeID - the routeID to search for in the HashTable
Returns:
true if the enry already exists.

getRouteEntry

private java.lang.Integer getRouteEntry(int key)
getIntKey method used a key in the hashtable

Parameters:
key - the routeID you are looking for in the Hashtable
Returns:
the instance of the Integer whose integer value equals key.

removeRoute

public void removeRoute(int routeID)
removeRoute remove a route from the Hashtable

Parameters:
routeID - the routeID to remove from the HashTable