edu.lehigh.swat.obione
Class RGT

java.lang.Object
  extended by edu.lehigh.swat.obione.RGT

public class RGT
extends java.lang.Object

Models the rule goal tree of the PDMS.


Field Summary
private  GoalNode current
           
private  GoalNode root
           
 
Constructor Summary
RGT(GoalNode root)
          Intializes a RGT
 
Method Summary
 GoalNode getCurrent()
           
 GoalNode getRoot()
          Gets the root of the tree
 java.util.Vector<Node> getSiblings(Node n)
          Gets the siblings given a node
static void main(java.lang.String[] args)
           
 void setCurrent(GoalNode current)
           
 void showTree(Node start, int indentLevel)
          Shows the Tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private GoalNode root

current

private GoalNode current
Constructor Detail

RGT

public RGT(GoalNode root)
Intializes a RGT

Parameters:
root -
Method Detail

showTree

public void showTree(Node start,
                     int indentLevel)
Shows the Tree

Parameters:
start -
indentLevel -

getRoot

public GoalNode getRoot()
Gets the root of the tree

Returns:

getSiblings

public java.util.Vector<Node> getSiblings(Node n)
Gets the siblings given a node

Parameters:
n -
Returns:

main

public static void main(java.lang.String[] args)

getCurrent

public GoalNode getCurrent()
Returns:
the current

setCurrent

public void setCurrent(GoalNode current)
Parameters:
current - the current to set