edu.princeton.toy.lang
public static interface TVirtualMachine.ExecutionController
Modifier and Type | Method and Description |
---|---|
int |
getClockPeriod()
This function is called by the TVirtualMachine's runner after it has recieved an order
for a batch of steps to be run.
|
int |
statusUpdate(TVirtualMachine virtualMachine,
int n,
int elapsedTime,
boolean willStop)
This function is called by the TVirtualMachine's runner when it has completed the
previous batch of steps.
|
int statusUpdate(TVirtualMachine virtualMachine, int n, int elapsedTime, boolean willStop)
virtualMachine
- The virtual machine whose status is being reported.n
- The number of steps taken since the last update.elapsedTime
- The number of milliseconds between the lastUpdate and the present.willStop
- Wheter or not the TVirtualMachine will stop after this status update.int getClockPeriod()