core
Class InputSimulatorThread
java.lang.Object
core.InputSimulatorThread
- All Implemented Interfaces:
- Runnable
public class InputSimulatorThread
- extends Object
- implements Runnable
Initiate this class to simulate input to the Teacher client, and set the IsSimulating boolean in Constants to TRUE.
Implemented for testing purposes.
Replace the code in the run() method to simulate desired actions and situations.
- Author:
- Terje
Method Summary |
void |
run()
Replace this method with any method calls on the lega object to simulate any thinkable
input. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lega
LectureGame lega
InputSimulatorThread
public InputSimulatorThread(LectureGame lega)
run
public void run()
- Replace this method with any method calls on the lega object to simulate any thinkable
input. Use the thread.sleep method to simulate time intervals. Refer to the LectureGame class
documentation for a desription of available methods.
- Specified by:
run
in interface Runnable