@ -1425,7 +1441,7 @@ public class GUISimulator extends GUIPlugin implements MouseListener, ListSelect
noSteps=engine.getPathSize()-1;
if(noSteps<0)
thrownewSimulatorException("Cannot backtrack a negative number of steps, use explore instead");
thrownewNumberFormatException();
elseif(noSteps==0)
return;
@ -1433,7 +1449,7 @@ public class GUISimulator extends GUIPlugin implements MouseListener, ListSelect
}
catch(NumberFormatExceptionnfe)
{
thrownewSimulatorException("The \"Num. steps\" parameter is invalid.\nThe current input (\""+inputBacktrackField.getText().trim()+"\") is not a valid positive integer");
thrownewSimulatorException("The \"Steps\" parameter is invalid, it must be a positive integer smaller than the current path length (which is "+engine.getPathSize()+")");
}
}
elseif(typeBacktrackCombo.getSelectedIndex()==1)
@ -1448,15 +1464,60 @@ public class GUISimulator extends GUIPlugin implements MouseListener, ListSelect
thrownewSimulatorException("State with index \""+toState+"\" does not exist in the current path");
thrownewNumberFormatException();
a_backTrack(toState);
}
catch(NumberFormatExceptionnfe)
{
thrownewSimulatorException("The \"Num. steps\" parameter is invalid.\nThe current input (\""+inputBacktrackField.getText().trim()+"\") is not a valid positive integer");
thrownewSimulatorException("The \"Steps\" parameter is invalid, it must be a positive integer smaller than the current path length (which is "+engine.getPathSize()+")");
thrownewSimulatorException("The \"Time\" parameter is invalid, it must be a positive double smaller than the cumulative path time (which is "+engine.getTotalPathTime()+")");
thrownewSimulatorException("The \"Back to time\" parameter is invalid, it must be a positive double smaller than the cumulative path time (which is "+engine.getTotalPathTime()+")");