|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.graph.CompositeGraph.GraphCoordinator
public static class CompositeGraph.GraphCoordinator
A coordinator can be associated with a subgraph to provide information about the types of filters that will return results and the types of nodes and edges that the graph accepts.
Constructor Summary | |
---|---|
CompositeGraph.GraphCoordinator()
|
|
CompositeGraph.GraphCoordinator(java.lang.String name)
Creates a graph coordinator associated with the specified name for debugging/identification purposes. |
Method Summary | |
---|---|
boolean |
acceptsConnectedNode(java.lang.Object node,
com.phoenixst.plexus.Graph graph)
Returns true if the specified node can be added to the associated graph as a promotion. |
boolean |
acceptsEdge(java.lang.Object edge,
java.lang.Object tail,
java.lang.Object head,
boolean directed,
com.phoenixst.plexus.Graph graph)
Returns true if the specified edge belongs to the associated graph. |
boolean |
acceptsNode(java.lang.Object node,
com.phoenixst.plexus.Graph graph)
Returns true if the specified node belongs to the associated graph. |
boolean |
containsEdge(com.phoenixst.plexus.Graph.Edge edge,
com.phoenixst.plexus.Graph graph)
Returns true if the associated graph contains the specified edge. |
boolean |
containsNode(java.lang.Object node,
com.phoenixst.plexus.Graph graph)
Returns true if the associated graph contains the specified node. |
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. |
com.phoenixst.plexus.Graph.Edge |
getIncidentEdge(java.lang.Object node,
org.apache.commons.collections.Predicate traverserPredicate,
com.phoenixst.plexus.Graph graph)
Returns an incident edge for the specified node that matches the specified predicate. |
java.lang.String |
getName()
Returns the name associated with this coordinator. |
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. |
boolean |
hasPotentialEdges(org.apache.commons.collections.Predicate edgePredicate)
Returns true if the associated graph may return edges for the specified filter. |
boolean |
hasPotentialNodes(org.apache.commons.collections.Predicate nodePredicate)
Returns true if the associated graph may return nodes for 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. |
protected void |
setName(java.lang.String name)
Sets the name of the coordinator... useable by subclasses. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeGraph.GraphCoordinator()
public CompositeGraph.GraphCoordinator(java.lang.String name)
Method Detail |
---|
protected void setName(java.lang.String name)
public java.lang.String getName()
public boolean acceptsNode(java.lang.Object node, com.phoenixst.plexus.Graph graph)
public boolean acceptsConnectedNode(java.lang.Object node, com.phoenixst.plexus.Graph graph)
public boolean acceptsEdge(java.lang.Object edge, java.lang.Object tail, java.lang.Object head, boolean directed, com.phoenixst.plexus.Graph graph)
public boolean containsNode(java.lang.Object node, com.phoenixst.plexus.Graph graph)
public boolean hasPotentialNodes(org.apache.commons.collections.Predicate nodePredicate)
public boolean containsEdge(com.phoenixst.plexus.Graph.Edge edge, com.phoenixst.plexus.Graph graph)
public boolean hasPotentialEdges(org.apache.commons.collections.Predicate edgePredicate)
public java.util.Collection nodes(org.apache.commons.collections.Predicate nodePredicate, com.phoenixst.plexus.Graph graph)
public java.lang.Object getNode(org.apache.commons.collections.Predicate nodePredicate, com.phoenixst.plexus.Graph graph)
public java.util.Collection edges(org.apache.commons.collections.Predicate edgePredicate, com.phoenixst.plexus.Graph graph)
public com.phoenixst.plexus.Graph.Edge getEdge(org.apache.commons.collections.Predicate edgePredicate, com.phoenixst.plexus.Graph graph)
public com.phoenixst.plexus.Traverser traverser(java.lang.Object node, org.apache.commons.collections.Predicate traverserPredicate, com.phoenixst.plexus.Graph graph)
public com.phoenixst.plexus.Graph.Edge getIncidentEdge(java.lang.Object node, org.apache.commons.collections.Predicate traverserPredicate, com.phoenixst.plexus.Graph graph)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |