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

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

Best Java code snippets using org.matsim.core.mobsim.jdeqsim.JDEQSimConfigGroup.getFlowCapacityFactor (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.jdeqsimJDEQSimConfigGroupgetFlowCapacityFactor

Popular methods of JDEQSimConfigGroup

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

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top Vim plugins
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