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. |
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 |
data
protected Object data
- An arbitrary piece of data used by the predicate.
NodeFilter
public NodeFilter(Object data)
- Constructor.
- Parameters:
data
- the local data used by this predicate
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