org.problets.domain.model.implement
Class RunEnv

java.lang.Object
  extended by org.problets.domain.model.implement.RunEnv

public class RunEnv
extends java.lang.Object

Encapsulates the stack, heap, input stream, and output stream; keeps track of the nextStatement to be evaluated, and controlStack needed for visualization.

Author:
Amruth Kumar

Constructor Summary
RunEnv()
           
 
Method Summary
 java.util.Stack getControlStack()
          Returns a reference to the control stack
 HeapModel getHeap()
          Returns reference to the heap
 InputStream getInputStream()
          Returns reference to the input stream
 OutputStream getOutputStream()
          Returns reference to the output stream
 StackModel getStack()
          Returns reference to the stack
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunEnv

public RunEnv()
Method Detail

getControlStack

public java.util.Stack getControlStack()
Returns a reference to the control stack


getStack

public StackModel getStack()
Returns reference to the stack


getHeap

public HeapModel getHeap()
Returns reference to the heap


getInputStream

public InputStream getInputStream()
Returns reference to the input stream


getOutputStream

public OutputStream getOutputStream()
Returns reference to the output stream


main

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