Codota Logo
JDEQSimulation
Code IndexAdd Codota to your IDE (free)

How to use
JDEQSimulation
in
org.matsim.core.mobsim.jdeqsim

Best Java code snippets using org.matsim.core.mobsim.jdeqsim.JDEQSimulation (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: matsim-org/matsim

@Override
public void onPrepareSim() {
  new JDEQSimulation(config, scenario, eventsManager); // Initialize JDEQSim static fields
  t = new Timer();
  t.startTimer();
  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);
  }
}
origin: matsim-org/matsim

public void runJDEQSim(Scenario scenario) {
  EventsManagerImpl events = new EventsManagerImpl();
  events.addHandler(new PersonEventCollector());
  events.initProcessing();
  new JDEQSimulation(ConfigUtils.addOrGetModule(scenario.getConfig(), JDEQSimConfigGroup.NAME, JDEQSimConfigGroup.class), scenario, events).run();
  events.finishProcessing();
}
origin: matsim-org/matsim

@Override
public Mobsim get() {
  String mobsim = config.controler().getMobsim();
  if (mobSimSwitcher.isQSimIteration()) {
    if (mobsim.equals("jdeqsim")) {
      return new JDEQSimulation(ConfigUtils.addOrGetModule(scenario.getConfig(), JDEQSimConfigGroup.NAME, JDEQSimConfigGroup.class), scenario, eventsManager);
    } else {
      return qsimProvider.get();
    }
  } else {
    return pSimProvider.get();
  }
}
org.matsim.core.mobsim.jdeqsimJDEQSimulation

Javadoc

The starting point of the whole micro-simulation.

Most used methods

  • <init>
  • run

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • putExtra (Intent)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now