ubc.cs.JLog.Foundation
Class jDebugGoalStack

java.lang.Object
  extended by ubc.cs.JLog.Foundation.jGoalStack
      extended by ubc.cs.JLog.Foundation.jDebugGoalStack
All Implemented Interfaces:
iDebugGoalStack, iGoalStack

public class jDebugGoalStack
extends jGoalStack
implements iDebugGoalStack

jDebugGoalStack is the default goal stack implementation. It is efficient, but provides ways to view the stack contents. It is separated from jGoalStack for reasons of potentially divergent design goals. The design goal of this class is visability of the stack for purposes of debugging.

Author:
Glendon Holst

Field Summary
 
Fields inherited from class ubc.cs.JLog.Foundation.jGoalStack
head
 
Constructor Summary
jDebugGoalStack()
           
 
Method Summary
 java.util.Vector getStackCopy()
          Provides a vectorized duplicate of the goal stack.
 java.util.Vector getTopGoals(jGoal bottom)
           
 jGoal peekTopGoal()
           
 
Methods inherited from class ubc.cs.JLog.Foundation.jGoalStack
cut, empty, peek, peekn, pop, push
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ubc.cs.JLog.Foundation.iGoalStack
cut, empty, peek, peekn, pop, push
 

Constructor Detail

jDebugGoalStack

public jDebugGoalStack()
Method Detail

getTopGoals

public java.util.Vector getTopGoals(jGoal bottom)

peekTopGoal

public jGoal peekTopGoal()

getStackCopy

public java.util.Vector getStackCopy()
Description copied from interface: iDebugGoalStack
Provides a vectorized duplicate of the goal stack.

Specified by:
getStackCopy in interface iDebugGoalStack
Returns:
Vector of jGoals where the zero index element in the vector is the stack bottom, and the element with the largest index is the stack top.