Sets the simulation in play mode
()
| 80 | * Sets the simulation in play mode |
| 81 | */ |
| 82 | public void play() { |
| 83 | if (thread != null) { |
| 84 | return; |
| 85 | } |
| 86 | thread = new Thread(this); |
| 87 | thread.setPriority(Thread.MIN_PRIORITY); |
| 88 | thread.start(); |
| 89 | isPlaying = true; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Stops the simulation |