net.sourceforge.combean.graph.decorators
Class AbstractDecoratedGraph

Package class diagram package AbstractDecoratedGraph
java.lang.Object
  extended by net.sourceforge.combean.graph.decorators.AbstractDecoratedGraph
All Implemented Interfaces:
Graph, NestedGraphProp
Direct Known Subclasses:
OrderedNodesGraph, ResidualNetworkGraph, TransposedGraph

public abstract class AbstractDecoratedGraph
extends Object
implements NestedGraphProp

Convenience base class for decorators of graphs, i.e., classes which implement a graph property and enhance the functionality of an inner graph property object by intercepting calls to it.


Constructor Summary
AbstractDecoratedGraph(Graph g)
          Constructor
 
Method Summary
 Class getEdgeClass()
           
 Graph getNestedGraph()
           
 Class getNodeClass()
           
protected  boolean isModifiableGraphProp(Class wantedProp)
          Check whether the given property refers to the fact that the graph shall be modifiable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.prop.NestedGraphProp
mayNestGraphProp
 

Constructor Detail

AbstractDecoratedGraph

public AbstractDecoratedGraph(Graph g)
Constructor

Parameters:
g - the graph to be decorated
Method Detail

getNodeClass

public Class getNodeClass()
Specified by:
getNodeClass in interface Graph

getEdgeClass

public Class getEdgeClass()
Specified by:
getEdgeClass in interface Graph

getNestedGraph

public Graph getNestedGraph()
Specified by:
getNestedGraph in interface NestedGraphProp
Returns:
the nested graph

isModifiableGraphProp

protected boolean isModifiableGraphProp(Class wantedProp)
Check whether the given property refers to the fact that the graph shall be modifiable

Parameters:
wantedProp -
Returns:
true if either the set of edges or of the nodes in the graph is modifiable.