uk.org.arlott.simon.hw.f24.lbsta
Class NetworkSimulation.Task

java.lang.Object
  extended by java.util.TimerTask
      extended by uk.org.arlott.simon.hw.f24.lbsta.NetworkSimulation.Task
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
NetworkSimulation

private class NetworkSimulation.Task
extends java.util.TimerTask

The simulation task.


Constructor Summary
private NetworkSimulation.Task()
           
 
Method Summary
private  boolean checkRunning()
          Check if the simulation should be stopped.
 void run()
          Runs the simulation
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkSimulation.Task

private NetworkSimulation.Task()
Method Detail

run

public void run()
Runs the simulation

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

checkRunning

private boolean checkRunning()
Check if the simulation should be stopped.

Returns:
true if the simulation was stopped.