public class HeadwayGTUReal extends AbstractHeadway implements HeadwayGTU
Copyright (c) 2013-2017 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 |
|---|
HeadwayGTUReal(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length distance,
boolean facingSameDirection)
Construct a new Headway information object, for a GTU ahead of us or behind us.
|
HeadwayGTUReal(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear,
boolean facingSameDirection)
Construct a new Headway information object, for a GTU parallel with us.
|
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Acceleration |
getAcceleration() |
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics |
getBehavioralCharacteristics()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
CarFollowingModel |
getCarFollowingModel()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
org.opentrafficsim.core.gtu.GTUType |
getGtuType() |
String |
getId() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
Headway.ObjectType |
getObjectType() |
org.opentrafficsim.core.network.route.Route |
getRoute()
Models responding to other GTU may assume a route of the vehicle, for instance at intersections.
|
org.djunits.value.vdouble.scalar.Speed |
getSpeed() |
SpeedLimitInfo |
getSpeedLimitInfo()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
boolean |
isBrakingLightsOn() |
boolean |
isEmergencyLightsOn() |
boolean |
isFacingSameDirection() |
boolean |
isHonking() |
boolean |
isLeftTurnIndicatorOn() |
boolean |
isRightTurnIndicatorOn() |
HeadwayGTU |
moved(org.djunits.value.vdouble.scalar.Length headway,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
equals, getDistance, getOverlap, getOverlapFront, getOverlapRear, hashCode, isAhead, isBehind, isParallel, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallelpublic HeadwayGTUReal(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Length distance, boolean facingSameDirection) throws org.opentrafficsim.core.gtu.GTUException
gtu - the observed GTU, can not be null.distance - the distance to the other object; if this constructor is used, distance cannot be null.facingSameDirection - whether the GTU is facing the same direction.org.opentrafficsim.core.gtu.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayGTUReal(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, boolean facingSameDirection) throws org.opentrafficsim.core.gtu.GTUException
gtu - 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.facingSameDirection - whether the GTU is facing the same direction.org.opentrafficsim.core.gtu.GTUException - when id is null, or parameters are inconsistentpublic final CarFollowingModel getCarFollowingModel()
getCarFollowingModel in interface HeadwayGTUpublic final org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getBehavioralCharacteristics()
getBehavioralCharacteristics in interface HeadwayGTUpublic final SpeedLimitInfo getSpeedLimitInfo()
getSpeedLimitInfo in interface HeadwayGTUpublic final org.opentrafficsim.core.network.route.Route getRoute()
null if simply not known/estimated.getRoute in interface HeadwayGTUpublic HeadwayGTU moved(org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration)
HeadwayGTURealDirect, only headway, speed and acceleration may be considered to be delayed
and anticipated. Other information is taken from the actual GTU at the time moved() is called.moved in interface HeadwayGTUheadway - headwayspeed - speedacceleration - accelerationpublic String getId()
public org.djunits.value.vdouble.scalar.Length getLength()
public org.djunits.value.vdouble.scalar.Speed getSpeed()
public Headway.ObjectType getObjectType()
getObjectType in interface Headwaypublic org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
getAcceleration in interface Headwaypublic org.opentrafficsim.core.gtu.GTUType getGtuType()
getGtuType in interface HeadwayGTUpublic boolean isFacingSameDirection()
isFacingSameDirection in interface HeadwayGTUpublic boolean isBrakingLightsOn()
isBrakingLightsOn in interface HeadwayGTUpublic boolean isLeftTurnIndicatorOn()
isLeftTurnIndicatorOn in interface HeadwayGTUpublic boolean isRightTurnIndicatorOn()
isRightTurnIndicatorOn in interface HeadwayGTUpublic boolean isEmergencyLightsOn()
isEmergencyLightsOn in interface HeadwayGTUpublic boolean isHonking()
isHonking in interface HeadwayGTUCopyright © 2014–2017 Delft University of Technology. All rights reserved.