/** * This method returns the normalized capacity of the link, i.e. the capacity of vehicles per * second. It is considering the capacity reduction factors set in the config and the * simulation's tick time. * * @return the flow capacity of this link per second, scaled by the config values and in * relation to the SimulationTimer's simticktime. */ double getSimulatedFlowCapacity() { return this.firstLaneQueue.getSimulatedFlowCapacityPerTimeStep(); }
/** * This method returns the normalized capacity of the link, i.e. the capacity * of vehicles per second. It is considering the capacity reduction factors * set in the config and the simulation's tick time. * * @return the flow capacity of this link per second, scaled by the config * values and in relation to the SimulationTimer's simticktime. */ double getSimulatedFlowCapacityPerTimeStep() { return this.qlane.getSimulatedFlowCapacityPerTimeStep() ; }
assertNotNull(qlane); assertEquals(0.5, qlane.getSimulatedFlowCapacityPerTimeStep()); assertEquals(240.0, qlane.getStorageCapacity()); qlane = ql.getOfferingQLanes().get(0); assertEquals(0.5, qlane.getSimulatedFlowCapacityPerTimeStep()); assertEquals(28.0, qlane.getStorageCapacity());
assertNotNull(qlane); assertEquals(0.5, qlane.getSimulatedFlowCapacityPerTimeStep()); assertEquals(240.0, qlane.getStorageCapacity()); qlane = ql.getOfferingQLanes().get(0); assertEquals(0.25, qlane.getSimulatedFlowCapacityPerTimeStep()); assertEquals(14.0, qlane.getStorageCapacity());
assertNotNull(qlane); assertEquals(0.5, qlane.getSimulatedFlowCapacityPerTimeStep()); assertEquals(240.0, qlane.getStorageCapacity()); totalStorageCapacity += qlane.getStorageCapacity(); for (QLaneI qll : ql.getOfferingQLanes()) { if (((QueueWithBuffer)qll).getId().equals(Id.create(2, Lane.class))) { assertEquals(0.5, qll.getSimulatedFlowCapacityPerTimeStep()); assertEquals(28.0, qll.getStorageCapacity()); assertEquals(0.25, qll.getSimulatedFlowCapacityPerTimeStep()); assertEquals(14.0, qll.getStorageCapacity()); totalFlowCapacity += qll.getSimulatedFlowCapacityPerTimeStep();