agg.xt_basis
Class Node

java.lang.Object
  extended by agg.xt_basis.GraphObject
      extended by agg.xt_basis.Node
All Implemented Interfaces:
AttrObserver, XMLObject, java.io.Serializable

public class Node
extends GraphObject
implements XMLObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class agg.xt_basis.GraphObject
critical, criticalKind, itsAttr, itsContext, itsContextUsage, itsIncomingArcs, itsOutgoingArcs, itsSource, itsTarget, itsType, selected, visible
 
Fields inherited from interface agg.attribute.AttrObserver
serialVersionUID
 
Constructor Summary
  Node(AttrInstance attr, Type type, Graph context)
           
protected Node(Node orig, Graph context)
           
protected Node(Type type, Graph context)
           
 
Method Summary
 void attributeChanged(AttrEvent ev)
          Implements the AttrObserver.
 void checkAndAddInOutArc(Arc arc)
           
 boolean compareTo(GraphObject o)
           
 java.lang.String convertToKey()
          Converts my type to a type key string that can be used for search operations.
 void dispose()
           
 void finalize()
           
 boolean isArc()
           
 boolean isIsolated()
           
 boolean isNode()
           
 void propagateAttrValueFromParentNode()
           
 java.lang.String toString()
           
 void XreadObject(XMLHelper h)
           
 void XwriteObject(XMLHelper h)
           
 
Methods inherited from class agg.xt_basis.GraphObject
addIn, addOut, attributeToString, copyAttributes, createAttributeInstance, getAttribute, getContext, getContextUsage, getIncomingArcs, getIncomingArcsVec, getNumberOfArcs, getNumberOfAttributes, getNumberOfIncomingArcs, getNumberOfIncomingArcs, getNumberOfIncomingArcs, getNumberOfInOutArcs, getNumberOfOutgoingArcs, getNumberOfOutgoingArcs, getNumberOfOutgoingArcs, getOutgoingArcs, getOutgoingArcsVec, getType, getVariableNamesOfAttribute, hasIncomingArcFrom, hasOutgoingArcTo, isCritical, isPersistentFor, isVisible, removeIn, removeOut, setContextUsage, setCritical, setType, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(AttrInstance attr,
            Type type,
            Graph context)
Parameters:
context - The graph/subgraph context in which to consider incoming and outgoing arcs.

Node

protected Node(Type type,
               Graph context)

Node

protected Node(Node orig,
               Graph context)
Method Detail

checkAndAddInOutArc

public void checkAndAddInOutArc(Arc arc)

convertToKey

public java.lang.String convertToKey()
Description copied from class: GraphObject
Converts my type to a type key string that can be used for search operations. For a node it is similar to ((Node) this).getType().convertToKey() , for an edge to ((Arc) this).getSource().getType().convertToKey() + ((Arc) this).getType().convertToKey() + ((Arc) this).getTarget().getType().convertToKey()

Overrides:
convertToKey in class GraphObject

compareTo

public boolean compareTo(GraphObject o)
Specified by:
compareTo in class GraphObject

XwriteObject

public void XwriteObject(XMLHelper h)
Specified by:
XwriteObject in interface XMLObject
Specified by:
XwriteObject in class GraphObject

XreadObject

public void XreadObject(XMLHelper h)
Specified by:
XreadObject in interface XMLObject
Specified by:
XreadObject in class GraphObject

dispose

public void dispose()
Overrides:
dispose in class GraphObject

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

isArc

public final boolean isArc()
Specified by:
isArc in class GraphObject

isNode

public final boolean isNode()
Specified by:
isNode in class GraphObject

isIsolated

public final boolean isIsolated()
Returns:
true if don't exist any outgoing or incoming edges, otherwise false

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

attributeChanged

public void attributeChanged(AttrEvent ev)
Implements the AttrObserver. Propagates the change agg.util.Change.OBJECT_MODIFIED and object Pair (this, ev) to its Graph if the attributes are changed.

Specified by:
attributeChanged in interface AttrObserver
Overrides:
attributeChanged in class GraphObject

propagateAttrValueFromParentNode

public void propagateAttrValueFromParentNode()