edu.lehigh.swat.obione
Class Node

java.lang.Object
  extended by edu.lehigh.swat.obione.Node
Direct Known Subclasses:
GoalNode, RuleNode

public class Node
extends java.lang.Object

Models a node of a PDMS rule goal tree

Author:
Abir Qasem

Field Summary
private  java.util.Vector<Node> children
           
private  int id
           
private  Node parent
           
 
Constructor Summary
Node()
           
 
Method Summary
 void addChild(Node n)
           
 java.util.Vector<Node> getChildren()
           
 int getId()
           
 Node getParent()
           
 void setChildren(java.util.Vector<Node> children)
           
 void setId(int id)
           
 void setParent(Node parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private int id

parent

private Node parent

children

private java.util.Vector<Node> children
Constructor Detail

Node

public Node()
Method Detail

setChildren

public void setChildren(java.util.Vector<Node> children)

addChild

public void addChild(Node n)

getId

public int getId()

setId

public void setId(int id)

getParent

public Node getParent()

setParent

public void setParent(Node parent)

getChildren

public java.util.Vector<Node> getChildren()