com.phoenixst.plexus
public class LoggingGraph extends Object implements ObservableGraph
Graph
which wraps another to provide logging
support.
Since: 1.0
Version: $Revision: 1.13 $
Constructor Summary | |
---|---|
LoggingGraph(Graph delegate)
Creates a new LoggingGraph which
logs to a category corresponding to this class at
the DEBUG level. | |
LoggingGraph(Graph delegate, Logger logger)
Creates a new LoggingGraph which uses
the specified log at the DEBUG level. | |
LoggingGraph(Graph delegate, Logger logger, Level level)
Creates a new LoggingGraph . |
Method Summary | |
---|---|
Graph.Edge | addEdge(Object object, Object tail, Object head, boolean isDirected) |
void | addGraphListener(GraphListener listener)
Adds the specified GraphListener which will be
notified whenever this ObservableGraph's
structure changes. |
boolean | addNode(Object node) |
Collection | adjacentNodes(Object node, Predicate traverserPredicate) |
boolean | containsEdge(Graph.Edge edge) |
boolean | containsNode(Object node) |
int | degree(Object node) |
int | degree(Object node, Predicate traverserPredicate) |
Collection | edges(Predicate edgePredicate) |
Object | getAdjacentNode(Object node, Predicate traverserPredicate) |
protected Graph | getDelegate()
Provides access to internal state so it can be used
by extensions of this class. |
Graph.Edge | getEdge(Predicate edgePredicate) |
Graph.Edge | getIncidentEdge(Object node, Predicate traverserPredicate) |
protected Level | getLevel()
Provides access to internal state so it can be used
by extensions of this class. |
protected Logger | getLogger()
Provides access to internal state so it can be used
by extensions of this class. |
Object | getNode(Predicate nodePredicate) |
Collection | incidentEdges(Object node, Predicate traverserPredicate) |
Collection | nodes(Predicate nodePredicate) |
boolean | removeEdge(Graph.Edge edge) |
void | removeGraphListener(GraphListener listener)
Removes a previously added GraphListener . |
boolean | removeNode(Object node) |
String | toString() |
Traverser | traverser(Object node, Predicate traverserPredicate) |
LoggingGraph
which
logs to a category corresponding to this class at
the DEBUG level.LoggingGraph
which uses
the specified log at the DEBUG level.LoggingGraph
.GraphListener
which will be
notified whenever this ObservableGraph's
structure changes. If the wrapped graph does not implement
ObservableGraph, then this method with throw an
UnsupportedOperationException
.GraphListener
. If the
wrapped graph does not implement ObservableGraph, then
this method with throw an
UnsupportedOperationException
.