edu.princeton.toy
Class TSimMachinePane.Runner

java.lang.Object
  extended by edu.princeton.toy.TSimMachinePane.Runner
All Implemented Interfaces:
Runnable
Enclosing class:
TSimMachinePane

protected class TSimMachinePane.Runner
extends Object
implements Runnable

Runner is a simple implementation of Runnable for the Thread started when the component's size changes.


Field Summary
protected  boolean isRunning
           
 
Constructor Summary
protected TSimMachinePane.Runner()
           
 
Method Summary
 void run()
          Implement Runnable to run the TSimMachinePane.
 void start()
          Causes the runner to start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isRunning

protected boolean isRunning
Constructor Detail

TSimMachinePane.Runner

protected TSimMachinePane.Runner()
Method Detail

start

public void start()
Causes the runner to start. This should only be called by a Thread which has synchronized the TSimMachinePane and has checked that the Runner is not already running.


run

public void run()
Implement Runnable to run the TSimMachinePane.

Specified by:
run in interface Runnable