public class HeadwayGTURealCopy extends AbstractHeadwayGTU
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 |
|---|
HeadwayGTURealCopy(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length distance,
GTUStatus... gtuStatus)
Construct a new Headway information object, for a GTU ahead of us or behind us.
|
HeadwayGTURealCopy(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear)
Construct a new Headway information object, for a GTU parallel with us.
|
HeadwayGTURealCopy(String id,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
CarFollowingModel carFollowingModel,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SpeedLimitInfo speedLimitInfo,
org.opentrafficsim.core.network.route.Route route,
GTUStatus... gtuStatus)
Private constructor for copies.
|
| Modifier and Type | Method and Description |
|---|---|
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.network.route.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(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.
|
getGtuStatus, getGtuType, isBrakingLightsOn, isEmergencyLightsOn, isFacingSameDirection, isHonking, isLeftTurnIndicatorOn, isRightTurnIndicatorOn, toStringequals, 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, isParallelHeadwayGTURealCopy(String id, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, CarFollowingModel carFollowingModel, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, SpeedLimitInfo speedLimitInfo, org.opentrafficsim.core.network.route.Route route, GTUStatus... gtuStatus) throws org.opentrafficsim.core.gtu.GTUException
id - idgtuType - GTU typedistance - distancelength - lengthspeed - speedacceleration - accelerationcarFollowingModel - car-following modelbehavioralCharacteristics - behavioral characteristicsspeedLimitInfo - speed limit inforoute - routegtuStatus - gtu statusorg.opentrafficsim.core.gtu.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayGTURealCopy(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Length distance, GTUStatus... gtuStatus) 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.gtuStatus - the observable characteristics of the GTU.org.opentrafficsim.core.gtu.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayGTURealCopy(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) 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.org.opentrafficsim.core.gtu.GTUException - when id is null, or parameters are inconsistentpublic final CarFollowingModel getCarFollowingModel()
public final org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getBehavioralCharacteristics()
public final SpeedLimitInfo getSpeedLimitInfo()
public final org.opentrafficsim.core.network.route.Route getRoute()
null if simply not known/estimated.public AbstractHeadwayGTU moved(org.djunits.value.vdouble.scalar.Length headway, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration)
headway - headwayspeed - speedacceleration - accelerationCopyright © 2014–2017 Delft University of Technology. All rights reserved.