|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.graph.CompositeGraph.GraphCoordinator
org.progeeks.graph.UnexcludedGraphCoordinator
public class UnexcludedGraphCoordinator
CompositeGraph.GraphCoordinator specialization that automatically unwraps AndPredicates that contain an ExcludesFilter... and if an ExludesFilter is passed directly then it is not passed on to the client. Any results returned are wrapped in the appropriate filtering collection or traverser. This provides a standard way for graphs to ignore these predicates and concentrate on optimizing the lower level calls.
Constructor Summary | |
---|---|
UnexcludedGraphCoordinator()
|
|
UnexcludedGraphCoordinator(java.lang.String name)
|
Method Summary | |
---|---|
java.util.Collection |
edges(org.apache.commons.collections.Predicate edgePredicate,
com.phoenixst.plexus.Graph graph)
Returns the set of edges from the subgraph that match the specified filter. |
com.phoenixst.plexus.Graph.Edge |
getEdge(org.apache.commons.collections.Predicate edgePredicate,
com.phoenixst.plexus.Graph graph)
Returns an edge from the specified graph that matches the specified filter. |
java.lang.Object |
getNode(org.apache.commons.collections.Predicate nodePredicate,
com.phoenixst.plexus.Graph graph)
Returns a node from the graph that matches the specified filter. |
java.util.Collection |
nodes(org.apache.commons.collections.Predicate nodePredicate,
com.phoenixst.plexus.Graph graph)
Returns the set of nodes from the subgraph that match the specified filter. |
void |
setName(java.lang.String name)
Allows for XML configuration of the name. |
com.phoenixst.plexus.Traverser |
traverser(java.lang.Object node,
org.apache.commons.collections.Predicate traverserPredicate,
com.phoenixst.plexus.Graph graph)
Returns a traverser for the specified node that is filtered by the specified predicate. |
protected org.apache.commons.collections.Predicate[] |
unwrapPredicate(org.apache.commons.collections.Predicate p)
Unwraps the predicate if possible and returns the unwrapped version and the separated excludes filter in an array. |
Methods inherited from class org.progeeks.graph.CompositeGraph.GraphCoordinator |
---|
acceptsConnectedNode, acceptsEdge, acceptsNode, containsEdge, containsNode, getIncidentEdge, getName, hasPotentialEdges, hasPotentialNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnexcludedGraphCoordinator()
public UnexcludedGraphCoordinator(java.lang.String name)
Method Detail |
---|
public void setName(java.lang.String name)
setName
in class CompositeGraph.GraphCoordinator
protected org.apache.commons.collections.Predicate[] unwrapPredicate(org.apache.commons.collections.Predicate p)
public java.util.Collection nodes(org.apache.commons.collections.Predicate nodePredicate, com.phoenixst.plexus.Graph graph)
nodes
in class CompositeGraph.GraphCoordinator
public java.lang.Object getNode(org.apache.commons.collections.Predicate nodePredicate, com.phoenixst.plexus.Graph graph)
getNode
in class CompositeGraph.GraphCoordinator
public java.util.Collection edges(org.apache.commons.collections.Predicate edgePredicate, com.phoenixst.plexus.Graph graph)
edges
in class CompositeGraph.GraphCoordinator
public com.phoenixst.plexus.Graph.Edge getEdge(org.apache.commons.collections.Predicate edgePredicate, com.phoenixst.plexus.Graph graph)
getEdge
in class CompositeGraph.GraphCoordinator
public com.phoenixst.plexus.Traverser traverser(java.lang.Object node, org.apache.commons.collections.Predicate traverserPredicate, com.phoenixst.plexus.Graph graph)
traverser
in class CompositeGraph.GraphCoordinator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |