public class HeadwayGTURealCopy extends AbstractHeadwayGTU
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 |
|---|
HeadwayGTURealCopy(LaneBasedGTU gtu,
Length distance)
Construct a new Headway information object, for a GTU ahead of us or behind us.
|
HeadwayGTURealCopy(LaneBasedGTU gtu,
Length overlapFront,
Length overlap,
Length overlapRear)
Construct a new Headway information object, for a GTU parallel with us.
|
| Modifier and Type | Method and Description |
|---|---|
CarFollowingModel |
getCarFollowingModel()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
Parameters |
getParameters()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
Route |
getRoute()
Models responding to other GTU may assume a route of the vehicle, for instance at intersections.
|
SpeedLimitInfo |
getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
AbstractHeadwayGTU |
moved(Length headway,
Speed speed,
Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
String |
toString() |
getDesiredSpeed, getGtuStatus, getGTUStatuses, getGtuType, getSpeedLimitInfo, getWidth, isBrakingLightsOn, isEmergencyLightsOn, isFacingSameDirection, isHonking, isLeftTurnIndicatorOn, isRightTurnIndicatorOnequals, getAcceleration, getId, getLength, getObjectType, getSpeed, hashCodegetDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallelclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallelpublic HeadwayGTURealCopy(LaneBasedGTU gtu, Length distance) throws GTUException
gtu - LaneBasedGTU; the observed GTU, can not be null.distance - the distance to the other object; if this constructor is used, distance cannot be null.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayGTURealCopy(LaneBasedGTU gtu, Length overlapFront, Length overlap, Length overlapRear) throws GTUException
gtu - LaneBasedGTU; the observed GTU, can not be null.overlapFront - the front-front distance to the other GTU; if this constructor is used, this value cannot be null.overlap - the 'center' overlap with the other GTU; if this constructor is used, this value cannot be null.overlapRear - the rear-rear distance to the other GTU; if this constructor is used, this value cannot be null.GTUException - when id is null, or parameters are inconsistentpublic final CarFollowingModel getCarFollowingModel()
public final Parameters getParameters()
public final SpeedLimitInfo getSpeedLimitInfo()
public final Route getRoute()
null if simply not known/estimated.public final AbstractHeadwayGTU moved(Length headway, Speed speed, Acceleration acceleration)
headway - Length; headwayspeed - Speed; speedacceleration - Acceleration; accelerationpublic final String toString()
toString in class AbstractHeadwayGTUCopyright © 2014–2019 Delft University of Technology. All rights reserved.