Added an isRunnable() method that returns true if the simulation can be run.
This commit is contained in:
parent
bb187d7882
commit
4868a172be
|
@ -1081,6 +1081,15 @@ public class Simulation extends Observable implements Runnable {
|
||||||
return isRunning && simulationThread != null;
|
return isRunning && simulationThread != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true is simulation is runnable.
|
||||||
|
*
|
||||||
|
* @return True if simulation is runnable
|
||||||
|
*/
|
||||||
|
public boolean isRunnable() {
|
||||||
|
return motes.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get current simulation title (short description).
|
* Get current simulation title (short description).
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue