agg.xt_basis
Class SubGraph

java.lang.Object
  extended by java.util.Observable
      extended by agg.util.ExtObservable
          extended by agg.xt_basis.Graph
              extended by agg.xt_basis.SubGraph
All Implemented Interfaces:
Disposable, XMLObject, com.objectspace.jgl.UnaryFunction, java.io.Serializable, java.util.Observer

Deprecated. not more supported

public class SubGraph
extends Graph

See Also:
Serialized Form

Field Summary
 
Fields inherited from class agg.xt_basis.Graph
attributed, changed, comment, completeGraph, info, itsArcs, itsAttrContext, itsAttrManager, itsName, itsNodes, itsTypeObjectsMap, itsTypes, itsUsingMorphs, kind, observer
 
Fields inherited from interface com.objectspace.jgl.UnaryFunction
serialVersionUID
 
Constructor Summary
SubGraph(Graph supergraph)
          Deprecated.  
 
Method Summary
 void addObject(GraphObject obj)
          Deprecated. Take over a graphobject of my supergraph.
 void dispose()
          Deprecated. Prepares this graph for garbage collection, so cut all connections to other objects and dispose all graph object contained.
 java.util.Enumeration<Arc> getArcs()
          Deprecated. Iterate through my Arcs.
 java.util.Enumeration<GraphObject> getElements()
          Deprecated. Iterate through my nodes and arcs.
 java.util.Enumeration<Node> getNodes()
          Deprecated.  
 Graph getSuperGraph()
          Deprecated. Return the graph I am a subgraph of.
 boolean isElement(GraphObject obj)
          Deprecated. Return true iff I contain the specified graphobject.
 boolean removeObject(GraphObject obj)
          Deprecated. Remove an object from the subgraph.
 
Methods inherited from class agg.xt_basis.Graph
addArc, addCopyOfGraph, addNode, addObserver, addUsingMorph, areAnyAttributesOfArcsSet, areAnyAttributesOfNodesSet, checkConnectValid, checkCreateGraphObject, checkCreateGraphObject, checkIsomorphicInclusions, clear, compareTo, contains, contains, copy, copy, copy, copyArc, copyLight, copyNode, createArc, createNode, createNode, createType, deleteObserver, destroyArc, destroyArc, destroyArc, destroyNode, destroyNode, destroyNode, destroyObject, destroyObjectsOfType, destroyObjectsOfTypes, destroyType, execute, fillTypeObjectsMap, finalize, forceDestroyObject, generateAllSubgraphs, generateAllSubgraphsWithInclusionsOfSize, getArcs, getArcs, getArcsCount, getArcsList, getAttrContext, getAttrManager, getElementsOfType, getElementsOfType, getElementsOfType, getElementsOfType, getElementsOfTypeAsVector, getElementsOfTypeAsVector, getElementsOfTypeAsVector, getElementsOfTypeAsVector, getElementsOfTypeAsVector, getHelpInfo, getHelpInfoAboutNAC, getHelpInfoAboutPAC, getHelpInfoAboutVariableEquality, getIndexOf, getIndexOfArc, getIndexOfNode, getIsomorphicWith, getIsomorphicWith, getIsomorphicWith, getKind, getName, getNodes, getNodesByCompareType, getNodesByParentType, getNodesCount, getNodesList, getObservers, getOverlappings, getOverlappings, getOverlappings, getOverlappings, getPartialMorphismIntoSet, getSameVariablesOfAttributes, getSize, getSizeOfArcs, getSizeOfNodes, getTextualComment, getTypeNamesOfGraphObjects, getTypeObjectsMap, getTypes, getTypeSet, getUsedAndInheritedTypes, getUsedTypes, getVariableNamesOfAttributes, glue, graphcopy, graphcopy, graphcopy, graphDidChange, isArc, isArcAttributeSet, isAttributed, isCompleteGraph, isEmpty, isGraph, isIsomorphicTo, isNacGraph, isNode, isNodeAttributeSet, isNotificationRequired, isomorphicCopy, isoToCopy, isoToCopy, isPacGraph, isReadyForTransform, isReadyForTransform, isTypeGraph, isUsingType, isUsingType, isUsingVariable, newArc, newNode, overlapSet, overlapSet, overlapSet, propagateChange, removeArc, removeNode, removeUsingMorph, reverseIsomorphicCopy, setAttrContext, setCompleteGraph, setHelpInfo, setKind, setNacGraph, setName, setNotificationRequired, setObservers, setPacGraph, setTextualComment, setTypeSet, showArcs, showGraph, showNodes, toString, unsetAttributeValueWhereVariable, unsetCriticalObjects, unsetTransientAttrValues, update, updateTypeObjectsMap, XreadObject, XwriteObject
 
Methods inherited from class agg.util.ExtObservable
setChanged
 
Methods inherited from class java.util.Observable
clearChanged, countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubGraph

public SubGraph(Graph supergraph)
Deprecated. 
Method Detail

dispose

public final void dispose()
Deprecated. 
Description copied from class: Graph
Prepares this graph for garbage collection, so cut all connections to other objects and dispose all graph object contained.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class Graph
See Also:
Change_ObservableGone

getSuperGraph

public final Graph getSuperGraph()
Deprecated. 
Return the graph I am a subgraph of.


isElement

public boolean isElement(GraphObject obj)
Deprecated. 
Return true iff I contain the specified graphobject.

Overrides:
isElement in class Graph

getNodes

public java.util.Enumeration<Node> getNodes()
Deprecated. 
Overrides:
getNodes in class Graph

getArcs

public java.util.Enumeration<Arc> getArcs()
Deprecated. 
Description copied from class: Graph
Iterate through my Arcs.

Overrides:
getArcs in class Graph
See Also:
*

getElements

public java.util.Enumeration<GraphObject> getElements()
Deprecated. 
Description copied from class: Graph
Iterate through my nodes and arcs.

Overrides:
getElements in class Graph
See Also:
GraphObject

addObject

public final void addObject(GraphObject obj)
Deprecated. 
Take over a graphobject of my supergraph. If obj is an arc, its source and target objects are added as well if necessary.

Pre: getSuperGraph().isElement(obj).


removeObject

public final boolean removeObject(GraphObject obj)
Deprecated. 
Remove an object from the subgraph. The object still remains in the supergraph. All of obj's incoming and outgoing arcs are removed as well.

Returns:
false iff obj was not an element of this subgraph.