public static class CarFollowingUtil.CarFollowingHeadway extends AbstractHeadway
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Headway.ObjectType
Constructor and Description |
---|
CarFollowingHeadway(Length headway,
Speed speed)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Acceleration |
getAcceleration() |
String |
getId() |
Length |
getLength() |
Headway.ObjectType |
getObjectType() |
Speed |
getSpeed() |
equals, getDistance, getOverlap, getOverlapFront, getOverlapRear, hashCode, isAhead, isBehind, isParallel, toString
public CarFollowingHeadway(Length headway, Speed speed) throws GTUException
headway
- Length; distance to the leaderspeed
- Speed; leader speedGTUException
- on exceptionpublic String getId()
public Length getLength()
public Speed getSpeed()
public Headway.ObjectType getObjectType()
public Acceleration getAcceleration()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.