edu.mit.sketch.ddg
Class DomainObjectGraphNode

java.lang.Object
  extended by edu.mit.sketch.ddg.DomainObjectGraphNode
All Implemented Interfaces:
java.io.Serializable

public class DomainObjectGraphNode
extends java.lang.Object
implements java.io.Serializable

A node in the DomainObjectGraph that represents a domain object (valid or not on its own). It contains the object description of the node and references to parents and children in the objec hierarchy.

DomainObjectGraphNode.java Created: Sun Sep 29 21:55:00 2002

Author:
Olya Veselova
See Also:
Serialized Form

Constructor Summary
DomainObjectGraphNode(ObjectDescription description)
          Constructs a node at the most general level with no connections to the object hierarchy
 
Method Summary
 java.util.Vector children()
          Get the children
 ObjectDescription description()
          Get the description of the object in this node
 int level()
          Get the level of this object
 int maxParentLevel()
          Get the max parent level
 java.lang.String name()
          Get the name of the object in this node
 java.util.Vector parents()
          Get the parents
 void setLevel(int level)
          Set the level of this object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainObjectGraphNode

public DomainObjectGraphNode(ObjectDescription description)
Constructs a node at the most general level with no connections to the object hierarchy

Method Detail

name

public java.lang.String name()
Get the name of the object in this node


description

public ObjectDescription description()
Get the description of the object in this node


level

public int level()
Get the level of this object


maxParentLevel

public int maxParentLevel()
Get the max parent level


setLevel

public void setLevel(int level)
Set the level of this object


children

public java.util.Vector children()
Get the children


parents

public java.util.Vector parents()
Get the parents