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

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

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

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.jdeqsimJDEQSimConfigGroupgetMinimumInFlowCapacity

Popular methods of JDEQSimConfigGroup

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • String (java.lang)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Notification (javax.management)
  • Join (org.hibernate.mapping)
  • Top plugins for WebStorm
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