Tabnine Logo
JDEQSimConfigGroup.getSimulationEndTime
Code IndexAdd Tabnine to your IDE (free)

How to use
getSimulationEndTime
method
in
org.matsim.core.mobsim.jdeqsim.JDEQSimConfigGroup

Best Java code snippets using org.matsim.core.mobsim.jdeqsim.JDEQSimConfigGroup.getSimulationEndTime (Showing top 2 results out of 315)

origin: matsim-org/matsim

  @Override
  public void run() {
    events.initProcessing();
    Timer t = new Timer();
    t.startTimer();

    Scheduler scheduler = new Scheduler(new MessageQueue(), config.getSimulationEndTime());
    Road.setAllRoads(new HashMap<Id<Link>, Road>());

    // initialize network
    Road road;
    for (Link link : this.scenario.getNetwork().getLinks().values()) {
      road = new Road(scheduler, link);
      Road.getAllRoads().put(link.getId(), road);
    }

    for (Person person : this.scenario.getPopulation().getPersons().values()) {
      new Vehicle(scheduler, person, activityDurationInterpretation); // the vehicle registers itself to the scheduler
    }

    scheduler.startSimulation();

    t.endTimer();
    log.info("Time needed for one iteration (only JDEQSimulation part): " + t.getMeasuredTime() + "[ms]");
    events.finishProcessing();
  }
}
origin: matsim-org/matsim

  public void testParametersSetCorrectly() {
    Config config = super.loadConfig(this.getPackageInputDirectory() + "config.xml");
    JDEQSimConfigGroup jdeqSimConfigGroup = ConfigUtils.addOrGetModule(config, JDEQSimConfigGroup.NAME, JDEQSimConfigGroup.class);
    assertEquals(360.0, jdeqSimConfigGroup.getSimulationEndTime(), EPSILON);
    assertEquals(2.0, jdeqSimConfigGroup.getFlowCapacityFactor(), EPSILON);
    assertEquals(3.0, jdeqSimConfigGroup.getStorageCapacityFactor(), EPSILON);
    assertEquals(3600.0, jdeqSimConfigGroup.getMinimumInFlowCapacity(), EPSILON);
    assertEquals(10.0, jdeqSimConfigGroup.getCarSize(), EPSILON);
    assertEquals(20.0, jdeqSimConfigGroup.getGapTravelSpeed(), EPSILON);
    assertEquals(9000.0, jdeqSimConfigGroup.getSqueezeTime(), EPSILON);
  }
}
org.matsim.core.mobsim.jdeqsimJDEQSimConfigGroupgetSimulationEndTime

Popular methods of JDEQSimConfigGroup

  • getCarSize
  • getFlowCapacityFactor
  • getGapTravelSpeed
  • getMinimumInFlowCapacity
  • getSqueezeTime
  • getStorageCapacityFactor
  • <init>
  • isGC_MESSAGES
  • setGC_MESSAGES

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now