Package desmoj.core.simulator

Examples of desmoj.core.simulator.TimeInstant


    // connect both
    model.connectToExperiment(exp);

    // set experiment parameters
    exp.setShowProgressBar(true); // display a progress bar (or not)
    exp.stop(new TimeInstant(1500, TimeUnit.MINUTES)); // set end of
                              // simulation at
                              // 1500 minutes
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
                                            // the
                                            // period
                                            // of
                                            // the
                                            // trace
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
                                          // debug
                                          // output
    // ATTENTION!
    // Don't use too long periods. Otherwise a huge HTML page will
    // be created which crashes Netscape :-)
View Full Code Here


   *             by the maxWaitTime parameter has passed and that the waiting
   *             has been interrupted
   */
  public CrossbarMessage waitForMessage(List<MessageChannel<T>> channelsToWaitOn, TimeSpan maxWaitTime)
      throws DelayedInterruptException {
    TimeInstant waitUntil;

    if (maxWaitTime != null) {
      waitUntil = TimeOperations.add(presentTime(), maxWaitTime);
    } else {
      waitUntil = null;
View Full Code Here

    Experiment exp = new Experiment("MessageCrossbarExampleExperiment", TimeUnit.SECONDS, TimeUnit.MINUTES, null);

    model.connectToExperiment(exp);

    exp.setShowProgressBar(false);
    exp.stop(new TimeInstant(1440, TimeUnit.MINUTES));
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES));
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES));

    exp.start();
    exp.report();
    exp.finish();
  }
View Full Code Here

    // connect both
    model.connectToExperiment(exp);

    // set experiment parameters
    exp.setShowProgressBar(false); // display a progress bar (or not)
    exp.stop(new TimeInstant(100, TimeUnit.MINUTES)); // set end of
                              // simulation at
                              // 1500 minutes
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
                                            // the
                                            // period
                                            // of
                                            // the
                                            // trace
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
                                          // debug
                                          // output
    // ATTENTION!
    // Don't use too long periods. Otherwise a huge HTML page will
    // be created which crashes Netscape :-)
View Full Code Here

    // connect both
    model.connectToExperiment(exp);

    // set experiment parameters
    exp.setShowProgressBar(true); // display a progress bar (or not)
    exp.stop(new TimeInstant(150000, TimeUnit.MINUTES)); // set end of
                                // simulation at
                                // 1500 minutes
    exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
                                            // the
                                            // period
                                            // of
                                            // the
                                            // trace
    exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
                                          // debug
                                          // output
    // ATTENTION!
    // Don't use too long periods. Otherwise a huge HTML page will
    // be created which crashes Netscape :-)
View Full Code Here

TOP

Related Classes of desmoj.core.simulator.TimeInstant

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.