Package org.opentrafficsim.swing.script
Class IdmOptions
java.lang.Object
org.opentrafficsim.swing.script.IdmOptions
Class containing a set of command line options for the intelligent driver model (IDM). To integrate in a program, give the
program the following property:
@
ArgGroup
private IdmOptions idmOptions = new IdmOptions();
Note that the variable initiation is only required if default values are changed using
CliUtil.changeOptionDefault(...)
.
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 TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Acceleration
getACar()
Returns the maximum acceleration of cars.org.djunits.value.vdouble.scalar.Acceleration
Returns the maximum acceleration of trucks.org.djunits.value.vdouble.scalar.Acceleration
getB()
Returns the maximum comfortable deceleration.org.djunits.value.vdouble.scalar.Duration
getTMax()
Returns the normal desired headway.org.djunits.value.vdouble.scalar.Duration
getTMin()
Returns the minimum desired headway.
-
Constructor Details
-
IdmOptions
public IdmOptions()
-
-
Method Details
-
getACar
public org.djunits.value.vdouble.scalar.Acceleration getACar()Returns the maximum acceleration of cars.- Returns:
- Acceleration; maximum acceleration of cars
-
getATruck
public org.djunits.value.vdouble.scalar.Acceleration getATruck()Returns the maximum acceleration of trucks.- Returns:
- Acceleration; maximum acceleration of truck
-
getB
public org.djunits.value.vdouble.scalar.Acceleration getB()Returns the maximum comfortable deceleration.- Returns:
- Acceleration; maximum comfortable deceleration
-
getTMin
public org.djunits.value.vdouble.scalar.Duration getTMin()Returns the minimum desired headway.- Returns:
- Duration; minimum desired headway
-
getTMax
public org.djunits.value.vdouble.scalar.Duration getTMax()Returns the normal desired headway.- Returns:
- Duration; normal desired headway
-