|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.compound.base.BaseSubCompoundGraphBuilder
public abstract class BaseSubCompoundGraphBuilder
Constructor Summary | |
---|---|
protected |
BaseSubCompoundGraphBuilder()
Construct the builder, providing it with a list of nodes and edges with which to populate the subgraph that will be constructed. |
Method Summary | |
---|---|
protected abstract void |
addAdditionalEdges()
|
protected abstract void |
addAdditionalNodes()
|
void |
addIncidentEdges()
Add the incident edges between the nodes already added to the subgraph. |
void |
buildSubgraph()
Build the new subgraph, based on the previous processing of the initial nodes and edges. |
void |
expandChildNodes()
Expand the nodes provided to the builder so that all the contents of their compound graphs are included in the new subgraph. |
protected java.util.Set<BaseCompoundEdge> |
getEdgeList()
|
abstract BaseCompoundGraph |
getGraph()
|
protected java.util.Set<BaseCompoundNode> |
getNodeList()
|
abstract BaseSubCompoundGraph |
getSubgraph()
Retrieve the created subgraph. |
boolean |
hasAdditionalNodes()
|
protected abstract void |
newSubgraph()
|
void |
setEdgeList(java.util.Set<? extends BaseCompoundEdge> edgeList)
|
void |
setNodeList(java.util.Set<? extends BaseCompoundNode> nodeList)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseSubCompoundGraphBuilder()
graph
- the graph to which the subgraph will refer, cannot be null.nodeList
- the list of nodes to be added to the subgraph, cannot be null.edgeList
- the list of edges to be added to the subgraph, cannot be null.
java.lang.NullPointerException
- if any of the the parameters are null.Method Detail |
---|
public void setNodeList(java.util.Set<? extends BaseCompoundNode> nodeList)
setNodeList
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
public void setEdgeList(java.util.Set<? extends BaseCompoundEdge> edgeList)
setEdgeList
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
protected java.util.Set<BaseCompoundNode> getNodeList()
protected java.util.Set<BaseCompoundEdge> getEdgeList()
public void expandChildNodes()
expandChildNodes
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
public void addIncidentEdges()
addIncidentEdges
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
protected abstract void addAdditionalNodes()
protected abstract void addAdditionalEdges()
public void buildSubgraph()
buildSubgraph
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
protected abstract void newSubgraph()
public abstract BaseSubCompoundGraph getSubgraph()
getSubgraph
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
java.lang.IllegalStateException
- if the subgraph has not been created by a call to buildSubgraph
.public abstract BaseCompoundGraph getGraph()
getGraph
in interface ISubCompoundGraphBuilder<BaseCompoundNode,BaseCompoundEdge>
public boolean hasAdditionalNodes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |