|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphGenerator
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(Object obj)
Adds an object to the graph. |
Graphable |
get(Object obj)
Retrieves a component of the graph. |
Graph |
getGraph()
Returns the graph being generated. |
GraphBuilder |
getGraphBuilder()
Returns the underlying builder. |
Graphable |
remove(Object obj)
Removes an object from the graph. |
void |
setGraphBuilder(GraphBuilder builder)
Sets the underlying builder used to physically construct the graph. |
Method Detail |
---|
Graphable add(Object obj)
obj
- The object to be modelled in the graph.
Graphable get(Object obj)
obj
- The object modelled by the component.
Graphable remove(Object obj)
obj
- The object modelled by the component.
void setGraphBuilder(GraphBuilder builder)
builder
- The new underlying GraphBuilder.GraphBuilder getGraphBuilder()
Graph getGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |