public final class IDMPropertySet extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-08-30 00:16:51 +0200 (Sun, 30 Aug 2015) $, @version $Revision: 1329 $, by $Author: averbraeck $,
initial version 5 jan. 2015
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> |
getA(CompoundProperty set)
Return the maximum acceleration.
|
static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> |
getB(CompoundProperty set)
Return the maximum comfortable deceleration.
|
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
getS0(CompoundProperty set)
Return the static headway.
|
static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> |
getTSafe(CompoundProperty set)
Return the time headway.
|
static CompoundProperty |
makeIDMPropertySet(String carType,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> a,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> b,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> s0,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> tSafe,
int displayPriority)
Create a CompoundProperty for the IDM or IDMPlus parameters for a specified car type.
|
public static CompoundProperty makeIDMPropertySet(String carType, org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> a, org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> b, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> s0, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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 org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> getA(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AccelerationUnit> getB(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> getS0(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)public static org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit> getTSafe(CompoundProperty set)
set
- CompoundProperty (should have been created with makeIDMPropertySet)Copyright © 2014–2015 Delft University of Technology. All rights reserved.