|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.xt_basis.GraphObject
public abstract class GraphObject
GraphObject defines the common interface and implementations for Nodes and Arcs.
Field Summary | |
---|---|
protected boolean |
critical
|
protected int |
criticalKind
|
protected AttrInstance |
itsAttr
|
protected Graph |
itsContext
|
protected java.lang.String |
itsContextUsage
|
protected java.util.Vector<Arc> |
itsIncomingArcs
|
protected java.util.Vector<Arc> |
itsOutgoingArcs
|
protected GraphObject |
itsSource
|
protected GraphObject |
itsTarget
|
protected Type |
itsType
|
boolean |
selected
|
protected boolean |
visible
|
Fields inherited from interface agg.attribute.AttrObserver |
---|
serialVersionUID |
Constructor Summary | |
---|---|
protected |
GraphObject(AttrInstance attr,
Type type,
GraphObject src,
GraphObject tar,
Graph context)
|
Method Summary | |
---|---|
protected void |
addIn(GraphObject obj)
|
protected void |
addOut(GraphObject obj)
|
void |
attributeChanged(AttrEvent ev)
Implements the AttrObserver. |
java.lang.String |
attributeToString()
|
abstract boolean |
compareTo(GraphObject o)
|
java.lang.String |
convertToKey()
Converts my type to a type key string that can be used for search operations. |
void |
copyAttributes(GraphObject orig)
|
void |
createAttributeInstance()
|
void |
dispose()
|
AttrInstance |
getAttribute()
Return my attribute value. |
Graph |
getContext()
|
java.lang.String |
getContextUsage()
|
java.util.Enumeration<Arc> |
getIncomingArcs()
Iterate through all the arcs that I am the target of. |
java.util.Vector<Arc> |
getIncomingArcsVec()
|
int |
getNumberOfArcs()
|
int |
getNumberOfAttributes()
|
int |
getNumberOfIncomingArcs()
|
int |
getNumberOfIncomingArcs(Type t)
|
int |
getNumberOfIncomingArcs(Type t,
Type src)
|
int |
getNumberOfInOutArcs()
|
int |
getNumberOfOutgoingArcs()
|
int |
getNumberOfOutgoingArcs(Type t)
|
int |
getNumberOfOutgoingArcs(Type t,
Type tar)
|
java.util.Enumeration<Arc> |
getOutgoingArcs()
Iterate through all the arcs that I am the source of. |
java.util.Vector<Arc> |
getOutgoingArcsVec()
|
Type |
getType()
Return my type. |
java.util.Vector<java.lang.String> |
getVariableNamesOfAttribute()
|
boolean |
hasIncomingArcFrom(Type t)
|
boolean |
hasOutgoingArcTo(Type t)
|
abstract boolean |
isArc()
|
boolean |
isCritical()
|
abstract boolean |
isNode()
|
boolean |
isPersistentFor(AttrTuple at)
|
boolean |
isVisible()
|
protected void |
removeIn(GraphObject obj)
|
protected void |
removeOut(GraphObject obj)
|
void |
setContextUsage(java.lang.String aContextUsage)
|
void |
setCritical(boolean b)
|
void |
setType(Type type)
|
void |
setVisible(boolean b)
|
abstract void |
XreadObject(XMLHelper h)
|
abstract void |
XwriteObject(XMLHelper h)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Graph itsContext
protected Type itsType
protected AttrInstance itsAttr
protected final java.util.Vector<Arc> itsOutgoingArcs
protected final java.util.Vector<Arc> itsIncomingArcs
protected GraphObject itsSource
protected GraphObject itsTarget
protected java.lang.String itsContextUsage
protected boolean critical
protected int criticalKind
protected boolean visible
public boolean selected
Constructor Detail |
---|
protected GraphObject(AttrInstance attr, Type type, GraphObject src, GraphObject tar, Graph context)
context
- The graph/subgraph context in which to consider incoming and
outgoing arcs.Method Detail |
---|
public void createAttributeInstance()
public void dispose()
public final java.lang.String getContextUsage()
public final void setContextUsage(java.lang.String aContextUsage)
public final Graph getContext()
public void setCritical(boolean b)
public boolean isCritical()
public void setVisible(boolean b)
public boolean isVisible()
public abstract boolean isArc()
public abstract boolean isNode()
public abstract boolean compareTo(GraphObject o)
public abstract void XwriteObject(XMLHelper h)
XwriteObject
in interface XMLObject
public abstract void XreadObject(XMLHelper h)
XreadObject
in interface XMLObject
public final Type getType()
public final void setType(Type type)
public final int getNumberOfArcs()
public final java.util.Enumeration<Arc> getIncomingArcs()
Arc
.
Arc
public final java.util.Vector<Arc> getIncomingArcsVec()
public final int getNumberOfIncomingArcs()
public final int getNumberOfIncomingArcs(Type t)
public final int getNumberOfIncomingArcs(Type t, Type src)
public boolean hasIncomingArcFrom(Type t)
public java.util.Enumeration<Arc> getOutgoingArcs()
Arc
.
Arc
public int getNumberOfOutgoingArcs()
public java.util.Vector<Arc> getOutgoingArcsVec()
public final int getNumberOfOutgoingArcs(Type t)
public final int getNumberOfOutgoingArcs(Type t, Type tar)
public boolean hasOutgoingArcTo(Type t)
public int getNumberOfInOutArcs()
protected final void addOut(GraphObject obj)
protected final void addIn(GraphObject obj)
protected final void removeOut(GraphObject obj)
protected final void removeIn(GraphObject obj)
public java.lang.String convertToKey()
((Node) this).getType().convertToKey()
, for an edge to
((Arc) this).getSource().getType().convertToKey()
+ ((Arc) this).getType().convertToKey() + ((Arc) this).getTarget().getType().convertToKey()
public final AttrInstance getAttribute()
public int getNumberOfAttributes()
public final java.util.Vector<java.lang.String> getVariableNamesOfAttribute()
public void copyAttributes(GraphObject orig)
public void attributeChanged(AttrEvent ev)
agg.util.Change.OBJECT_MODIFIED
and object Pair (this, ev.getID())
to its Graph if the attributes are changed.
- Specified by:
attributeChanged
in interface AttrObserver
public java.lang.String attributeToString()
public boolean isPersistentFor(AttrTuple at)
isPersistentFor
in interface AttrObserver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |