Plexus v0.13.1

com.phoenixst.plexus.util
Class DefaultTraverserFactory

java.lang.Object
  extended by com.phoenixst.plexus.util.DefaultTraverserFactory
All Implemented Interfaces:
Serializable, org.apache.commons.collections.Transformer

public class DefaultTraverserFactory
extends Object
implements org.apache.commons.collections.Transformer, Serializable

A Transformer which when given a node, returns a Traverser over nodes adjacent to that node, specified by a Graph and a Predicate.

Since:
1.0
Version:
$Revision: 1.14 $
Author:
Ray A. Conner
See Also:
Serialized Form

Constructor Summary
DefaultTraverserFactory(Graph graph, org.apache.commons.collections.Predicate traverserPredicate)
          Creates a new DefaultTraverserFactory.
 
Method Summary
 Graph getGraph()
          Gets the Graph for this DefaultTraverserFactory.
 org.apache.commons.collections.Predicate getTraverserPredicate()
          Gets the Predicate for this DefaultTraverserFactory.
 Object transform(Object node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTraverserFactory

public DefaultTraverserFactory(Graph graph,
                               org.apache.commons.collections.Predicate traverserPredicate)
Creates a new DefaultTraverserFactory.

Method Detail

transform

public Object transform(Object node)
Specified by:
transform in interface org.apache.commons.collections.Transformer

getGraph

public Graph getGraph()
Gets the Graph for this DefaultTraverserFactory.


getTraverserPredicate

public org.apache.commons.collections.Predicate getTraverserPredicate()
Gets the Predicate for this DefaultTraverserFactory.


Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.