|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contructs a graph based on relationships between the entities (objects)
modelled by the graph.
The underlying graph is generated by continually adding objects to the
generator. The Generator determines the relationships between the objects
and decides how to model the relationship and the objects themselves in the
graph.
The GraphGenerator is the upper level of the graph construction process.
It is a wrapper around the GraphBuilder class that is intended to
instruct the builder how to build the underyling graph structure.
GraphBuilder
Method Summary | |
Graphable |
add(java.lang.Object obj)
Adds an object to the graph. |
Graphable |
get(java.lang.Object obj)
Retrieves a component of the graph. |
Graph |
getGraph()
Returns the graph being generated. |
GraphBuilder |
getGraphBuilder()
Returns the underlying builder. |
Graphable |
remove(java.lang.Object obj)
Removes an object from the graph. |
void |
setGraphBuilder(GraphBuilder builder)
Sets the underlying builder used to physically construct the graph. |
Method Detail |
public Graphable add(java.lang.Object obj)
obj
- The object to be modelled in the graph.
public Graphable get(java.lang.Object obj)
obj
- The object modelled by the component.
public Graphable remove(java.lang.Object obj)
obj
- The object modelled by the component.
public void setGraphBuilder(GraphBuilder builder)
builder
- The new underlying GraphBuilder.public GraphBuilder getGraphBuilder()
public Graph getGraph()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |