javaslam.tjt.graph
Class NodeFilter

java.lang.Object
  |
  +--javaslam.tjt.graph.NodeFilter

public abstract class NodeFilter
extends Object

A predicate over graph nodes.


Field Summary
protected  Object data
          An arbitrary piece of data used by the predicate.
 
Constructor Summary
NodeFilter(Object data)
          Constructor.
 
Method Summary
abstract  boolean satisfies(Node n)
          Returns true if the supplied node satisfies this predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected Object data
An arbitrary piece of data used by the predicate.

Constructor Detail

NodeFilter

public NodeFilter(Object data)
Constructor.

Parameters:
data - the local data used by this predicate
Method Detail

satisfies

public abstract boolean satisfies(Node n)
Returns true if the supplied node satisfies this predicate.

Parameters:
n - the node to which the predicate is applied
Returns:
true iff n satisfies this predicate