Plexus v0.13.1

com.phoenixst.plexus
Class EdgePredicateFactory

java.lang.Object
  extended by com.phoenixst.plexus.EdgePredicateFactory

public class EdgePredicateFactory
extends Object

A factory for creating EdgePredicates.

Since:
1.0
Version:
$Revision: 1.10 $
Author:
Ray A. Conner

Method Summary
static EdgePredicate create(Graph.Edge edge)
          Creates a new EdgePredicate which tests for Graph.Edges which look just like the specified edge.
static EdgePredicate createEquals(Object userObject, Object firstNode, Object secondNode, int directionFlags)
          Creates a new EdgePredicate which tests for Graph.Edges that contain the specified user object, have the specified endpoints, and have the specified direction relative to firstNode.
static EdgePredicate createEqualsNodes(Object firstNode, Object secondNode, int directionFlags)
          Creates a new EdgePredicate which tests for Graph.Edges that have the specified endpoints and direction relative to firstNode.
static EdgePredicate createEqualsUser(Object userObject, int directionFlags)
          Creates a new EdgePredicate which tests for Graph.Edges that contain the specified user object and have the specified directedness.
static EdgePredicate createPredicated(org.apache.commons.collections.Predicate userObjectPredicate, org.apache.commons.collections.Predicate firstNodePredicate, org.apache.commons.collections.Predicate secondNodePredicate, int directionFlags)
          Creates a new EdgePredicate which tests for Graph.Edges whose contained user object and endpoints satisfy the specified Predicates, and which have the specified direction relative to the endpoint satisyfing the firstNodePredicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final EdgePredicate create(Graph.Edge edge)
Creates a new EdgePredicate which tests for Graph.Edges which look just like the specified edge. To pass the returned Predicate, an edge must have the same endpoints, contained user object, and directedness. If the specified edge is undirected, then the endpoints may be swapped and still be valid.


createEqualsNodes

public static final EdgePredicate createEqualsNodes(Object firstNode,
                                                    Object secondNode,
                                                    int directionFlags)
Creates a new EdgePredicate which tests for Graph.Edges that have the specified endpoints and direction relative to firstNode.


createEqualsUser

public static final EdgePredicate createEqualsUser(Object userObject,
                                                   int directionFlags)
Creates a new EdgePredicate which tests for Graph.Edges that contain the specified user object and have the specified directedness.


createEquals

public static final EdgePredicate createEquals(Object userObject,
                                               Object firstNode,
                                               Object secondNode,
                                               int directionFlags)
Creates a new EdgePredicate which tests for Graph.Edges that contain the specified user object, have the specified endpoints, and have the specified direction relative to firstNode.


createPredicated

public static final EdgePredicate createPredicated(org.apache.commons.collections.Predicate userObjectPredicate,
                                                   org.apache.commons.collections.Predicate firstNodePredicate,
                                                   org.apache.commons.collections.Predicate secondNodePredicate,
                                                   int directionFlags)
Creates a new EdgePredicate which tests for Graph.Edges whose contained user object and endpoints satisfy the specified Predicates, and which have the specified direction relative to the endpoint satisyfing the firstNodePredicate.


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.