public class HeadwayGTUSimple extends AbstractHeadwayGTU
 Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
AbstractHeadwayGTU.GTUStatusHeadway.ObjectType| Constructor and Description | 
|---|
HeadwayGTUSimple(String id,
                org.opentrafficsim.core.gtu.GTUType gtuType,
                org.djunits.value.vdouble.scalar.Length distance,
                org.djunits.value.vdouble.scalar.Length length,
                AbstractHeadwayGTU.GTUStatus... gtuStatus)
Construct a new Headway information object, for a non-moving GTU ahead of us or behind us. 
 | 
HeadwayGTUSimple(String id,
                org.opentrafficsim.core.gtu.GTUType gtuType,
                org.djunits.value.vdouble.scalar.Length overlapFront,
                org.djunits.value.vdouble.scalar.Length overlap,
                org.djunits.value.vdouble.scalar.Length overlapRear,
                org.djunits.value.vdouble.scalar.Length length,
                AbstractHeadwayGTU.GTUStatus... gtuStatus)
Construct a new Headway information object, for a non-moving GTU parallel with us. 
 | 
HeadwayGTUSimple(String id,
                org.opentrafficsim.core.gtu.GTUType gtuType,
                org.djunits.value.vdouble.scalar.Length overlapFront,
                org.djunits.value.vdouble.scalar.Length overlap,
                org.djunits.value.vdouble.scalar.Length overlapRear,
                org.djunits.value.vdouble.scalar.Length length,
                org.djunits.value.vdouble.scalar.Speed speed,
                org.djunits.value.vdouble.scalar.Acceleration acceleration,
                AbstractHeadwayGTU.GTUStatus... gtuStatus)
Construct a new Headway information object, for a moving GTU parallel with us. 
 | 
HeadwayGTUSimple(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,
                AbstractHeadwayGTU.GTUStatus... gtuStatus)
Construct a new Headway information object, for a moving GTU ahead of us or behind us. 
 | 
| 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. 
 | 
getGtuType, isBrakingLightsOn, isEmergencyLightsOn, isFacingSameDirection, isHonking, isLeftTurnIndicatorOn, isRightTurnIndicatorOn, toStringequals, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, hashCode, isAhead, isBehind, isParallelpublic HeadwayGTUSimple(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, AbstractHeadwayGTU.GTUStatus... gtuStatus) throws org.opentrafficsim.core.gtu.GTUException
id - the id of the GTU for comparison purposes, can not be null.gtuType - the perceived GTU Type, or null if unknown.distance - the distance to the other object; if this constructor is used, distance cannot be null.length - the length of the other object; if this constructor is used, length cannot be null.speed - the (perceived) speed of the other object; can be null if unknown.acceleration - the (perceived) acceleration of the other object; can be null if unknown.gtuStatus - the observable characteristics of the GTU.org.opentrafficsim.core.gtu.GTUException - when id is null, objectType is null, or parameters are inconsistentpublic HeadwayGTUSimple(String id, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Length length, AbstractHeadwayGTU.GTUStatus... gtuStatus) throws org.opentrafficsim.core.gtu.GTUException
id - the id of the GTU for comparison purposes, can not be null.gtuType - the perceived GTU Type, or null if unknown.distance - Length; the distance to the other GTU; if this constructor is used, distance cannot be null.length - the length of the other object; if this constructor is used, length cannot be null.gtuStatus - the observable characteristics of the GTU.org.opentrafficsim.core.gtu.GTUException - when id is null, or parameters are inconsistentpublic HeadwayGTUSimple(String id, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, AbstractHeadwayGTU.GTUStatus... gtuStatus) throws org.opentrafficsim.core.gtu.GTUException
id - the id of the GTU for comparison purposes, can not be null.gtuType - the perceived GTU Type, or null if unknown.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.length - the length of the other object; if this constructor is used, length cannot be null.speed - the (perceived) speed of the other GTU; can be null if unknown.acceleration - the (perceived) acceleration of the other GTU; can be null if unknown.gtuStatus - the observable characteristics of the GTU.org.opentrafficsim.core.gtu.GTUException - when id is null, or parameters are inconsistentpublic HeadwayGTUSimple(String id, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear, org.djunits.value.vdouble.scalar.Length length, AbstractHeadwayGTU.GTUStatus... gtuStatus) throws org.opentrafficsim.core.gtu.GTUException
id - the id of the GTU for comparison purposes, can not be null.gtuType - the perceived GTU Type, or null if unknown.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.length - the length of the other object; if this constructor is used, length cannot be null.gtuStatus - the observable characteristics of the GTU.org.opentrafficsim.core.gtu.GTUException - when id is null, or parameters are inconsistentpublic final CarFollowingModel getCarFollowingModel()
getCarFollowingModel in class AbstractHeadwayGTUpublic final org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getBehavioralCharacteristics()
getBehavioralCharacteristics in class AbstractHeadwayGTUpublic final SpeedLimitInfo getSpeedLimitInfo()
getSpeedLimitInfo in class AbstractHeadwayGTUpublic final org.opentrafficsim.core.network.route.Route getRoute()
null if simply not known/estimated.getRoute in class AbstractHeadwayGTUCopyright © 2014–2017 Delft University of Technology. All rights reserved.