public final class IDMPropertySet extends Object
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
static DoubleScalar.Abs<AccelerationUnit> |
getA(CompoundProperty set)
Return the maximum acceleration.
|
static DoubleScalar.Abs<AccelerationUnit> |
getB(CompoundProperty set)
Return the maximum comfortable deceleration.
|
static DoubleScalar.Rel<LengthUnit> |
getS0(CompoundProperty set)
Return the static headway.
|
static DoubleScalar.Rel<TimeUnit> |
getTSafe(CompoundProperty set)
Return the time headway.
|
static CompoundProperty |
makeIDMPropertySet(String carType,
DoubleScalar.Abs<AccelerationUnit> a,
DoubleScalar.Abs<AccelerationUnit> b,
DoubleScalar.Rel<LengthUnit> s0,
DoubleScalar.Rel<TimeUnit> tSafe,
int displayPriority)
Create a CompoundProperty for the IDM or IDMPlus parameters for a specified car type.
|
public static CompoundProperty makeIDMPropertySet(String carType, DoubleScalar.Abs<AccelerationUnit> a, DoubleScalar.Abs<AccelerationUnit> b, DoubleScalar.Rel<LengthUnit> s0, DoubleScalar.Rel<TimeUnit> tSafe, int displayPriority)
carType
- String; the type of the cara
- DoubleScalar.Abs<AccelerationUnit>; the maximum acceleration of the carb
- DoubleScalar.Abs<AccelerationUnit>; the maximum comfortable deceleration of the cars0
- DoubleScalar.Rel<LengthUnit>; the stationary distance headwaytSafe
- DoubleScalar.Rel<TimeUnit>; the time headwaydisplayPriority
- int; the display priority of the returned CompoundPropertypublic static DoubleScalar.Abs<AccelerationUnit> getA(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static DoubleScalar.Abs<AccelerationUnit> getB(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static DoubleScalar.Rel<LengthUnit> getS0(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static DoubleScalar.Rel<TimeUnit> getTSafe(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)Copyright © 2014–2015 Delft University of Technology. All rights reserved.