|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface TVirtualMachine.ExecutionController
ExecutionController is an interface that classes which wish to recieve notifications of a ToyVirtualMachine's termination should implement.
TVirtualMachine.run(TVirtualMachine.ExecutionController)| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||