|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
agg.util.ExtObservable
agg.xt_basis.Graph
agg.xt_basis.TypeGraph
public class TypeGraph
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 | |
---|---|
TypeGraph()
Deprecated. |
|
TypeGraph(boolean completeGraph)
Deprecated. |
|
TypeGraph(TypeSet aTypeSet)
Creates an empty type graph for the specified type set. |
|
TypeGraph(TypeSet aTypeSet,
boolean completeGraph)
Deprecated. |
Method Summary | |
---|---|
void |
addArc(Arc a)
Adds the specified edge to my edges. |
boolean |
addCopyOfGraph(Graph g)
Adds a copy of the specified Graph g. |
boolean |
addCopyOfGraph(Graph g,
boolean disabledTypeGraphOnly)
Deprecated. addCopyOfGraph(final Graph g) should be used |
void |
addNode(Node n)
Adds the specified node to my nodes. |
boolean |
contains(Graph g)
|
Graph |
copy()
Copys a graph The method returns a flat copy (without references) of the graph. |
Graph |
copy(java.util.Hashtable<GraphObject,GraphObject> orig2copy)
Makes a copy of this graph |
Graph |
copy(TypeSet types)
Returns a copy of this type graph typed above the specified typeset. |
Arc |
copyArc(Arc orig,
Node src,
Node tar)
Create a new Arc as a copy of orig . |
Graph |
copyLight(TypeSet typeSet)
|
Node |
copyNode(Node orig)
Create a new Node as a copy of orig . |
Arc |
createArc(Type type,
Node src,
Node tar)
Create a new Arc with given Type, source and target objects. |
Node |
createNode(Node orig)
Deprecated. use the method copyNode(Node orig) |
Node |
createNode(Type type)
Create a new Node with given Type. |
void |
destroyArc(Arc arc,
boolean checkFirst,
boolean forceDestroy)
The specified arc will be removed from this type graph. |
void |
destroyNode(Node node,
boolean checkFirst,
boolean forceDestroy)
Delete a Node. |
void |
dispose()
prepare this graph for garbage collection. so cut all connections to other objects and dispose all graph object contained. |
void |
finalize()
|
java.util.Vector<OrdinaryMorphism> |
generateAllSubgraphs(int sizeOfInclusions,
boolean union,
boolean withIsomorphic)
This method is not implemented for this class. |
java.util.Vector<OrdinaryMorphism> |
generateAllSubgraphsWithInclusionsOfSize(int i,
java.util.Vector<GraphObject> itsGOSet,
java.util.Vector<OrdinaryMorphism> inclusions,
boolean withIsomorphic)
This method is not implemented for this class. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
getOverlappings(Graph g,
boolean withIsomorphic)
This method is not defined for this class. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
getOverlappings(Graph g,
boolean disjunion,
boolean withIsomorphic)
This method is not defined for this class. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
getOverlappings(Graph g,
int sizeOfInclusions,
boolean withIsomorphic)
This method is not defined for this class. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
getOverlappings(Graph g,
int sizeOfInclusions,
boolean disjunion,
boolean withIsomorphic)
This method is not defined for this class. |
java.util.Vector<java.util.Hashtable<GraphObject,GraphObject>> |
getPartialMorphismIntoSet(java.util.Vector<GraphObject> set)
This method is not defined for this class. |
java.util.Vector<VarMember> |
getSameVariablesOfAttributes()
This method is not defined for this class. |
java.util.Vector<java.lang.String> |
getVariableNamesOfAttributes()
This method is not defined for this class. |
boolean |
glue(GraphObject keep,
GraphObject glue)
This method is not defined for this class. |
Graph |
graphcopy()
The method returnes a flat copy of the graph itself. |
protected Graph |
graphcopy(java.util.Hashtable<GraphObject,GraphObject> orig2copy)
Makes a copy of this graph |
Graph |
graphcopy(TypeGraph g)
THIS METHOD IS NOT IMPLEMENTED FOR THIS CLASS. |
int |
indexOf(Arc a)
|
int |
indexOf(Node n)
|
boolean |
isCompleteGraph()
Returns false. |
boolean |
isNacGraph()
Returns false. |
OrdinaryMorphism |
isomorphicCopy()
This method is not defined for this class. |
OrdinaryMorphism |
isoToCopy()
This method is not defined for this class. |
OrdinaryMorphism |
isoToCopy(int n)
This method is not defined for this class. |
boolean |
isReadyForTransform()
This method is not defined for this class. |
boolean |
isReadyForTransform(java.util.Vector<GraphObject> storeOfFailedObjs)
This method is not defined for this class. |
boolean |
isTypeGraph()
Returns true. |
boolean |
isUsingVariable(VarMember v)
This method is not defined for this class. |
void |
moveTo(Arc a,
int indx)
|
void |
moveTo(Node n,
int indx)
|
protected Arc |
newArc(Type t,
Node src,
Node tar)
Create a new Arc with given Type, source and target objects. |
protected Node |
newNode(Type t)
Creates and adds a new node. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
overlapSet(Graph g,
int memoNumber,
boolean withIsomorphic)
This method is not defined for this class. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
overlapSet(Graph g,
int memoNumber,
boolean union,
boolean withIsomorphic)
This method is not defined for this class. |
java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> |
overlapSet(Graph g,
int sizeOfInclusions,
int memoNumber,
boolean union,
boolean withIsomorphic)
This method is not defined for this class. |
protected void |
removeArc(Arc a)
|
protected void |
removeNode(Node n)
|
OrdinaryMorphism |
reverseIsomorphicCopy()
This method is not defined for this class. |
void |
tryToExtendByTypeNodes(java.util.Vector<Type> types)
Only new type nodes are created for the node types inside of the specified types. |
void |
unsetCriticalObjects()
This method is not defined for this class. |
void |
unsetTransientAttrValues()
This method is not defined for this class. |
void |
XreadObject(XMLHelper h)
Implements the interface of XMLObject |
void |
XwriteObject(XMLHelper h)
Implements the interface of XMLObject |
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 |
---|
public TypeGraph()
public TypeGraph(boolean completeGraph)
public TypeGraph(TypeSet aTypeSet, boolean completeGraph)
public TypeGraph(TypeSet aTypeSet)
Method Detail |
---|
public void dispose()
dispose
in interface Disposable
dispose
in class Graph
Change_ObservableGone
public void finalize()
finalize
in class Graph
public int indexOf(Node n)
public int indexOf(Arc a)
public void moveTo(Node n, int indx)
public void moveTo(Arc a, int indx)
public void tryToExtendByTypeNodes(java.util.Vector<Type> types)
types
- is a subset of my type set.public boolean addCopyOfGraph(Graph g)
g
- another TypeGraph instance
public boolean addCopyOfGraph(Graph g, boolean disabledTypeGraphOnly)
addCopyOfGraph(final Graph g)
should be used
addCopyOfGraph
in class Graph
g
- another TypeGraph instancedisabledTypeGraphOnly
- is always true
public Graph copyLight(TypeSet typeSet)
copyLight
in class Graph
public Graph copy(TypeSet types)
copy
in class Graph
public Graph copy(java.util.Hashtable<GraphObject,GraphObject> orig2copy)
copy
in class Graph
orig2copy
- this hashtable is used to store the pairs (original, copy),
where an original is a node or edge of this graph and a copy
is a copied node or edge of the graph copy.
protected Graph graphcopy(java.util.Hashtable<GraphObject,GraphObject> orig2copy)
orig2copy
- this hashtable is used to store the pairs (original, copy),
where an original is a node or edge of this graph and a copy
is a copied node or edge of the graph copy.
public Graph graphcopy()
graphcopy
in class Graph
public Graph copy()
copy
in class Graph
public Graph graphcopy(TypeGraph g)
public void addNode(Node n)
addNode
in class Graph
public Node copyNode(Node orig) throws TypeException
orig
. Only the type and
the * attributes are copied, the structural context (incoming/outgoing
arcs) is not. *
copyNode
in class Graph
TypeException
protected void removeNode(Node n)
removeNode
in class Graph
public void addArc(Arc a)
addArc
in class Graph
protected void removeArc(Arc a)
removeArc
in class Graph
protected Node newNode(Type t) throws TypeException
Graph
newNode
in class Graph
TypeException
public Node createNode(Type type) throws TypeException
createNode
in class Graph
TypeException
public Node createNode(Node orig) throws TypeException
copyNode(Node orig)
createNode
in class Graph
TypeException
public void destroyNode(Node node, boolean checkFirst, boolean forceDestroy) throws TypeException
destroyNode
in class Graph
TypeException
- If the parameter forceDestroy is false and there are objects
of this node, the type exception will be thrown, otherwise
not.protected Arc newArc(Type t, Node src, Node tar) throws TypeException
newArc
in class Graph
TypeException
public Arc createArc(Type type, Node src, Node tar) throws TypeException
createArc
in class Graph
TypeException
public Arc copyArc(Arc orig, Node src, Node tar) throws TypeException
orig
. Only the type and the
attributes are copied, the structural context (source, target) is not.
Source and target object must be part of this graph.
copyArc
in class Graph
TypeException
public void destroyArc(Arc arc, boolean checkFirst, boolean forceDestroy) throws TypeException
destroyArc
in class Graph
TypeException
- If the parameter forceDestroy is false and there are objects
of this node, the type exception will be thrown, otherwise
not.public boolean contains(Graph g)
contains
in class Graph
public boolean isUsingVariable(VarMember v)
isUsingVariable
in class Graph
public boolean glue(GraphObject keep, GraphObject glue)
glue
in class Graph
public boolean isReadyForTransform()
isReadyForTransform
in class Graph
public boolean isReadyForTransform(java.util.Vector<GraphObject> storeOfFailedObjs)
isReadyForTransform
in class Graph
public OrdinaryMorphism isomorphicCopy()
isomorphicCopy
in class Graph
public OrdinaryMorphism isoToCopy()
isoToCopy
in class Graph
public OrdinaryMorphism isoToCopy(int n)
isoToCopy
in class Graph
public OrdinaryMorphism reverseIsomorphicCopy()
reverseIsomorphicCopy
in class Graph
public java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> overlapSet(Graph g, int memoNumber, boolean withIsomorphic)
overlapSet
in class Graph
public java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> overlapSet(Graph g, int memoNumber, boolean union, boolean withIsomorphic)
overlapSet
in class Graph
public java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> overlapSet(Graph g, int sizeOfInclusions, int memoNumber, boolean union, boolean withIsomorphic)
overlapSet
in class Graph
public java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> getOverlappings(Graph g, boolean withIsomorphic)
getOverlappings
in class Graph
g
- The graph to overlap withpublic java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> getOverlappings(Graph g, boolean disjunion, boolean withIsomorphic)
getOverlappings
in class Graph
g
- The graph to overlap withdisjunion
- true if disjoint union is wantedpublic java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> getOverlappings(Graph g, int sizeOfInclusions, boolean withIsomorphic)
getOverlappings
in class Graph
g
- The graph to overlap withpublic java.util.Enumeration<Pair<OrdinaryMorphism,OrdinaryMorphism>> getOverlappings(Graph g, int sizeOfInclusions, boolean disjunion, boolean withIsomorphic)
getOverlappings
in class Graph
g
- The graph to overlap withdisjunion
- true if disjoint union is wantedpublic void XwriteObject(XMLHelper h)
Graph
XwriteObject
in interface XMLObject
XwriteObject
in class Graph
public void XreadObject(XMLHelper h)
Graph
XreadObject
in interface XMLObject
XreadObject
in class Graph
public java.util.Vector<OrdinaryMorphism> generateAllSubgraphs(int sizeOfInclusions, boolean union, boolean withIsomorphic)
generateAllSubgraphs
in class Graph
public java.util.Vector<OrdinaryMorphism> generateAllSubgraphsWithInclusionsOfSize(int i, java.util.Vector<GraphObject> itsGOSet, java.util.Vector<OrdinaryMorphism> inclusions, boolean withIsomorphic)
generateAllSubgraphsWithInclusionsOfSize
in class Graph
public boolean isTypeGraph()
isTypeGraph
in class Graph
public boolean isCompleteGraph()
isCompleteGraph
in class Graph
public boolean isNacGraph()
isNacGraph
in class Graph
public java.util.Vector<java.lang.String> getVariableNamesOfAttributes()
getVariableNamesOfAttributes
in class Graph
public java.util.Vector<VarMember> getSameVariablesOfAttributes()
getSameVariablesOfAttributes
in class Graph
public void unsetCriticalObjects()
unsetCriticalObjects
in class Graph
public void unsetTransientAttrValues()
unsetTransientAttrValues
in class Graph
public java.util.Vector<java.util.Hashtable<GraphObject,GraphObject>> getPartialMorphismIntoSet(java.util.Vector<GraphObject> set)
getPartialMorphismIntoSet
in class Graph
set
- is target of morphisms
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |