SSF.OS.BGP4.Util
Class RadixTreeIteratorAction

java.lang.Object
  |
  +--SSF.OS.BGP4.Util.RadixTreeIteratorAction

public abstract class RadixTreeIteratorAction
extends java.lang.Object

An action to perform on each node of a radix tree while iterating over it.


Field Summary
 java.lang.Object params
          A data object used to contain any parameters required during iteration.
 java.lang.Object result
          A data object used to contain any results left during iteration.
 
Constructor Summary
RadixTreeIteratorAction(java.lang.Object p)
          Constructs an iterator action with given iteration parameters.
 
Method Summary
abstract  void action(RadixTreeNode node, java.lang.String bitstr)
          A generic method to act upon a radix tree node during iteration of the tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

public java.lang.Object result
A data object used to contain any results left during iteration.


params

public java.lang.Object params
A data object used to contain any parameters required during iteration.

Constructor Detail

RadixTreeIteratorAction

public RadixTreeIteratorAction(java.lang.Object p)
Constructs an iterator action with given iteration parameters.

Parameters:
p - An object containing any parameters required during iteration.
Method Detail

action

public abstract void action(RadixTreeNode node,
                            java.lang.String bitstr)
A generic method to act upon a radix tree node during iteration of the tree.

Parameters:
node - The radix tree node to act upon.
bitstr - A string of 0s and 1s representing the key of the node in the tree.