public final class IDMPropertySet extends Object
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2016-05-28 11:33:31 +0200 (Sat, 28 May 2016) $, @version $Revision: 2051 $, by $Author: averbraeck $,
initial version 5 jan. 2015
Modifier and Type | Method and Description |
---|---|
static Acceleration |
getA(CompoundProperty set)
Return the maximum acceleration.
|
static Acceleration |
getB(CompoundProperty set)
Return the maximum comfortable deceleration.
|
static Length |
getS0(CompoundProperty set)
Return the static headway.
|
static Duration |
getTSafe(CompoundProperty set)
Return the time headway.
|
static CompoundProperty |
makeIDMPropertySet(String key,
String carType,
Acceleration a,
Acceleration b,
Length s0,
Duration tSafe,
int displayPriority)
Create a CompoundProperty for the IDM or IDMPlus parameters for a specified car type.
|
public static CompoundProperty makeIDMPropertySet(String key, String carType, Acceleration a, Acceleration b, Length s0, Duration tSafe, int displayPriority) throws PropertyException
key
- String; the unique key of the new propertycarType
- String; the type of the cara
- Acceleration; the maximum acceleration of the carb
- Acceleration; the maximum comfortable deceleration of the cars0
- Length; the stationary distance headwaytSafe
- Duration; the time headwaydisplayPriority
- int; the display priority of the returned CompoundPropertyPropertyException
- when key is not unique, or one of the generated sub keys is not uniquepublic static Acceleration getA(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static Acceleration getB(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static Length getS0(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static Duration getTSafe(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)Copyright © 2014–2018 Delft University of Technology. All rights reserved.