edu.princeton.toy.lang
protected class TVirtualMachine.Runner extends java.lang.Object implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
interrupted |
protected boolean |
isRunning |
| Modifier | Constructor and Description |
|---|---|
protected |
TVirtualMachine.Runner() |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Implement Runnable to run the TVirtualMachine.
|
void |
start(TVirtualMachine.ExecutionController controller)
Causes the runner to start.
|
public void start(TVirtualMachine.ExecutionController controller)
controller - The implementation of ExecutionController which will recieve
notification of the completion of a batch of steps and control the size of each batch.public void run()
run in interface java.lang.Runnable