Class CfBaRoomChecker
java.lang.Object
org.opentrafficsim.road.gtu.generator.CfRoomChecker
org.opentrafficsim.road.gtu.generator.CfBaRoomChecker
- All Implemented Interfaces:
LaneBasedGtuGenerator.RoomChecker
Extends car-following placement with a first-order bounded acceleration (BA) principle. This principle comes down to
reduction of efficiency by increasing headways, as the generated GTU speed is lower than the desired speed. The increased
headways allow for acceleration to occur, allowing faster flow recovery over time.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
headwayFactor
(org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, org.djunits.value.vdouble.scalar.Speed generationSpeed, org.djunits.value.vdouble.scalar.Length generationHeadway, org.djunits.value.vdouble.scalar.Length leaderLength) Returns a situation dependent headway factor to deal with spillback.Methods inherited from class org.opentrafficsim.road.gtu.generator.CfRoomChecker
canPlace
-
Constructor Details
-
CfBaRoomChecker
public CfBaRoomChecker()
-
-
Method Details
-
headwayFactor
protected double headwayFactor(org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, org.djunits.value.vdouble.scalar.Speed generationSpeed, org.djunits.value.vdouble.scalar.Length generationHeadway, org.djunits.value.vdouble.scalar.Length leaderLength) Returns a situation dependent headway factor to deal with spillback.- Overrides:
headwayFactor
in classCfRoomChecker
- Parameters:
desiredSpeed
- Speed; desired speeddesiredHeadway
- Length; desired headway at desired speedgenerationSpeed
- Speed; generation speedgenerationHeadway
- Length; desired headway at generation speedleaderLength
- Length; length of the leader- Returns:
- situation dependent headway factor to deal with spillback
-