Plexus v0.13.1

com.phoenixst.plexus.util
Class DefaultIncidentEdgeGetter

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

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

A Transformer which when given a node, returns a single Edge incident to that node, specified by a Graph and a Predicate.

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

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

Constructor Detail

DefaultIncidentEdgeGetter

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

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 DefaultIncidentEdgeGetter.


getTraverserPredicate

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


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.