|
@@ -286,8 +286,10 @@ public class SimulationConfigurator extends JFrame implements Observer{
|
|
|
//Change Button Text
|
|
|
if (sim.isRunning()) {
|
|
|
btnStartStop.setText("Stop Simulation");
|
|
|
- } else {
|
|
|
+ } else if(sim.getCurrentTime()<sim.getEndTime()){
|
|
|
btnStartStop.setText("Start Simulation");
|
|
|
+ } else{
|
|
|
+ btnStartStop.setText("Restart Simulation");
|
|
|
}
|
|
|
mutex = false;
|
|
|
|
|
@@ -407,7 +409,7 @@ public class SimulationConfigurator extends JFrame implements Observer{
|
|
|
if(sim.isRunning()){
|
|
|
sim.stopSimulation();
|
|
|
}else{
|
|
|
- if(sim.getCurrentTime()==sim.getEndTime()){
|
|
|
+ if(sim.getCurrentTime()>=sim.getEndTime()){
|
|
|
//Reset
|
|
|
sim.resetSimulation();
|
|
|
}
|