karel
Class KarelVM

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--karel.KarelVM
All Implemented Interfaces:
java.lang.Runnable

public class KarelVM
extends java.lang.Thread


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
KarelVM(Robot r, Program p)
           
 
Method Summary
 boolean branch()
           
 boolean callproc()
           
 boolean condbranch()
           
 boolean execute(Program p)
           
 Robot getRobot()
           
 boolean iterate()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KarelVM

public KarelVM(Robot r,
               Program p)
Method Detail

getRobot

public Robot getRobot()

run

public void run()
Overrides:
run in class java.lang.Thread

branch

public boolean branch()
               throws KarelException

condbranch

public boolean condbranch()
                   throws KarelException

iterate

public boolean iterate()
                throws KarelException

callproc

public boolean callproc()
                 throws KarelException

execute

public boolean execute(Program p)
                throws KarelException