thrownewSimulatorException("The \"Num. steps\" parameter is invalid.\nIt must be a positive integer");
thrownewNumberFormatException();
a_autoStep(noSteps);
a_autoStep(noSteps);
}
}
catch(NumberFormatExceptionnfe)
catch(NumberFormatExceptionnfe)
{
{
thrownewSimulatorException("The \"Num. steps\" parameter is invalid.\nThe current input (\""+inputExploreField.getText().trim()+"\") is not a valid positive integer");
thrownewSimulatorException("The \"Steps\" parameter is invalid, it must be a positive integer.");
}
}
}
}
/* Update upto some state. */
/* Update upto some state. */
@ -1587,20 +1630,64 @@ public class GUISimulator extends GUIPlugin implements MouseListener, ListSelect
thrownewSimulatorException("The \"To state\" parameter is invalid.\nIt must be a positive integer larger than the index of the current state ("+(engine.getPathSize()-1)+"), but it is currently empty");
thrownewSimulatorException("The \"To state\" parameter is invalid.\nIt must be a positive integer larger than the index of the current state ("+(engine.getPathSize()-1)+")");
thrownewNumberFormatException();
a_autoStep(uptoState-engine.getPathSize()+1);
a_autoStep(uptoState-engine.getPathSize()+1);
}
}
catch(NumberFormatExceptionnfe)
catch(NumberFormatExceptionnfe)
{
{
thrownewSimulatorException("The \"To state\" parameter is invalid.\nThe current input (\""+inputExploreField.getText().trim()+"\") is not a valid positive integer");
thrownewSimulatorException("The \"Up to state\" parameter is invalid, it must be a positive integer larger than the index of the current state (which is "+(engine.getPathSize()-1)+")");
thrownewSimulatorException("The \"Time\" parameter is invalid, it must be a positive double larger than the cumulative path time (which is currently "+currentTime+")");