Package org.jamesii.core.simulationrun.stoppolicy

Examples of org.jamesii.core.simulationrun.stoppolicy.SimTimeStopFactory


          "java://org.jamesii.examples.ca.tutorial.BogusModel"));
      ParameterBlock pb = new ParameterBlock();
      pb.addSubBlock(SimTimeStopFactory.SIMEND, 10.0);

      exp.setComputationTaskStopPolicyFactory(new ParameterizedFactory<ComputationTaskStopPolicyFactory<?>>(
          new SimTimeStopFactory(), pb));
      exp.setRepeatRuns(1);
      exp.execute();
    } catch (Exception ex) {
      SimSystem.report(ex);
    }
View Full Code Here


    sc.setConfigNumber(2);
    sc.setSimStartTime(1.23);
    sc.setInterStepDelay(234);
    sc.setStartPaused(true);
    sc.setComputationTaskStopFactory(new ParameterizedFactory<ComputationTaskStopPolicyFactory<?>>(
        new SimTimeStopFactory(), new ParameterBlock()));
    sc.setSimulationObservers(new ArrayList<IObserver<? extends IObservable>>());
    return sc;
  }
View Full Code Here

   *
   * @param stopTime
   *          the new default simulation stop time
   */
  public void setDefaultSimStopTime(double stopTime) {
    computationTaskStopFactory.setFactory(new SimTimeStopFactory());
    computationTaskStopFactory.setParameter(new ParameterBlock(stopTime,
        SimTimeStopFactory.SIMEND));
  }
View Full Code Here

        new TaskConfiguration(1, null, null, parameters.getParameterBlock());
    ParameterBlock pb = new ParameterBlock();
    pb.addSubBlock(SimTimeStopFactory.SIMEND, stopTime);
    config
        .setComputationTaskStopFactory(new ParameterizedFactory<ComputationTaskStopPolicyFactory<?>>(
            new SimTimeStopFactory(), pb));
    return config
        .newComputationTaskConfiguration(new ComputationTaskIDObject());
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.simulationrun.stoppolicy.SimTimeStopFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.