@@ -0,0 +1,1912 @@
+package osmo.tester.generator.endcondition;%0D%0A%0D%0Aimport osmo.common.log.Logger;%0D%0Aimport osmo.tester.generator.testsuite.TestSuite;%0D%0Aimport osmo.tester.model.FSM;%0D%0A%0D%0A/**%0D%0A * A simple end condition to stop test case generation when the time is ended in generating test case or test suite%0D%0A * %0D%0A * @author Olli-Pekka Puolitaival%0D%0A */%0D%0Apublic class Time extends AbstractEndCondition %7B%0D%0A  private static Logger log = new Logger(Length.class);%0D%0A  /** The stopping time in seconds. */%0D%0A  private long treshold = 0;%0D%0A  private long starttime = 0;%0D%0A%0D%0A  /**%0D%0A   * Constructor.%0D%0A   *%0D%0A   * @param sec The time in seconds when to stop generation.%0D%0A   */%0D%0A  public Time(int seconds) %7B%0D%0A    if (seconds %3C 0) %7B%0D%0A      throw new IllegalArgumentException(%22Time in sec cannot be %3C 0, was %22 + seconds + %22.%22);%0D%0A    %7D%0D%0A    this.treshold = (long)(seconds*1000);%0D%0A    starttime = System.currentTimeMillis();%0D%0A  %7D%0D%0A%0D%0A  /**%0D%0A   * Constructor.%0D%0A   *%0D%0A   * @param sec The time in seconds when to stop generation.%0D%0A   */%0D%0A  public Time(double seconds) %7B%0D%0A    if (seconds %3C 0) %7B%0D%0A      throw new IllegalArgumentException(%22Time in sec cannot be %3C 0, was %22 + seconds + %22.%22);%0D%0A    %7D%0D%0A    this.treshold = (long)(seconds*1000);%0D%0A    System.out.println(%22Treshold: %22+treshold);%0D%0A    starttime = System.currentTimeMillis();%0D%0A  %7D%0D%0A  %0D%0A  @Override%0D%0A  public boolean endSuite(TestSuite suite, FSM fsm) %7B%0D%0A    log.debug(%22 es:%22 + suite.getFinishedTestCases().size() + %22 c:%22 + suite.currentSteps());%0D%0A    return (System.currentTimeMillis()-starttime) %3E= treshold;    %0D%0A  %7D%0D%0A%09%0D%0A  @Override%0D%0A  public boolean endTest(TestSuite suite, FSM fsm) %7B%0D%0A    log.debug(%22 es:%22 + suite.getFinishedTestCases().size() + %22 c:%22 + suite.currentSteps());%0D%0A    if((System.currentTimeMillis()-starttime) %3E= treshold)%7B%0D%0A        starttime = System.currentTimeMillis();%0D%0A        return true;%0D%0A    %7D%0D%0A    return false;%0D%0A  %7D%0D%0A%09%0D%0A  @Override%0D%0A  public void init(FSM fsm) %7B%0D%0A  %7D%0D%0A%0D%0A%7D%0D%0A

Add time end condition