|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModifiableGraph<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
Method Summary | |
---|---|
boolean |
canCopyHere(IBasicSubgraph<? extends N,? extends E> subGraph)
Tests whether the subGraph can be copied to this graph. |
void |
copyHere(IBasicSubgraph<? extends N,? extends E> subGraph)
Copies a subgraph into this graph. |
IBasicEdgeFactory<N,E> |
edgeFactory()
Gets the edgeFactory for this class. |
IBasicSubgraph<N,E> |
getCopiedComponents()
Retrieves the nodes and edges created in this graph by the last copy operation. |
IBasicNodeFactory<N,E> |
nodeFactory()
Gets the nodeFactory for this class. |
void |
removeSubgraph(IBasicSubgraph<? extends N,? extends E> subgraph)
Removes the nodes and edges defined in the subgraph from this graph. |
IBasicSubgraphFactory<N,E> |
subgraphFactory()
Gets the subgraphFactory for this class. |
Method Detail |
---|
IBasicNodeFactory<N,E> nodeFactory()
java.lang.UnsupportedOperationException
- if this graph implementation does support new node creation and so a factory
is not provided, i.e. canCreateNodes() == false
.IBasicEdgeFactory<N,E> edgeFactory()
java.lang.UnsupportedOperationException
- if this graph implementation does support new edge creation and so a factory
is not provided, i.e. canCreateEdges() == false
.IBasicSubgraphFactory<N,E> subgraphFactory()
java.lang.UnsupportedOperationException
- if this graph implementation does support new subgraph creation and so a factory
is not provided, i.e. canCreateSubgraphs() == false
.void removeSubgraph(IBasicSubgraph<? extends N,? extends E> subgraph)
subgraph
- The subgraph to remove, cannot be null.
java.lang.NullPointerException
- if subgraph
is null.
java.lang.UnsupportedOperationException
- if removal is not supported, i.e. when canRemoveSubgraph() == false
.
java.lang.IllegalArgumentException
- if the subgraph does not belong to this graph: subgraph.getOwningGraph() != this
.
java.lang.IllegalArgumentException
- if the subgraph is not consistent with this graph: subgraph.isConsistentSnapshot() == false
.boolean canCopyHere(IBasicSubgraph<? extends N,? extends E> subGraph)
subGraph
- the subgraph to test, can be null.
void copyHere(IBasicSubgraph<? extends N,? extends E> subGraph)
subGraph
- the subgraph to copyIBasicSubgraph<N,E> getCopiedComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |