Codota Logo
JDEQSimConfigGroup.getStorageCapacityFactor
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: matsim-org/matsim

public Road(Scheduler scheduler, Link link) {
  super(scheduler);
  this.link = link;
  /*
   * calculate the maximum number of cars, which can be on the road at the
   * same time
   */
  this.maxNumberOfCarsOnRoad = Math.round(link.getLength()
      * NetworkUtils.getNumberOfLanesAsInt(Time.UNDEFINED_TIME, link)
      * config.getStorageCapacityFactor() / config.getCarSize());
  /**
   * it is assured here, that a road must have the space of at least one
   * car
   */
  if (this.maxNumberOfCarsOnRoad == 0) {
    this.maxNumberOfCarsOnRoad = 1;
  }
  double maxInverseInFlowCapacity = 3600 / (config.getMinimumInFlowCapacity()
      * config.getFlowCapacityFactor() * NetworkUtils.getNumberOfLanesAsInt(Time.UNDEFINED_TIME, link));
  this.inverseOutFlowCapacity = 1 / (((Link) link).getFlowCapacityPerSec() * config.getFlowCapacityFactor());
  if (this.inverseOutFlowCapacity > maxInverseInFlowCapacity) {
    this.inverseInFlowCapacity = maxInverseInFlowCapacity;
  } else {
    this.inverseInFlowCapacity = this.inverseOutFlowCapacity;
  }
  this.gapTravelTime = link.getLength() / config.getGapTravelSpeed();
  // gap must be initialized to null because of the application logic
  this.gap = null;
}
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.jdeqsimJDEQSimConfigGroupgetStorageCapacityFactor

Popular methods of JDEQSimConfigGroup

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

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
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