public class HeadwayGTU 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.
Constructor and Description |
---|
HeadwayGTU(LaneBasedGTU otherGTU,
double distanceSI)
Construct a new HeadwayGTU.
|
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Length.Rel |
getDistance()
Retrieve the strongly typed distance to the other GTU.
|
double |
getDistanceSI()
Retrieve the distance to the other GTU in meters.
|
LaneBasedGTU |
getOtherGTU() |
String |
toString() |
public HeadwayGTU(LaneBasedGTU otherGTU, double distanceSI)
otherGTU
- the other GTUdistanceSI
- the distance to the other GTU in meters; if the other GTU is parallel, use distance Double.NaNpublic final LaneBasedGTU getOtherGTU()
public final double getDistanceSI()
public final org.djunits.value.vdouble.scalar.Length.Rel getDistance()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.