public interface HeadwayGTU extends Headway
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
Modifier and Type | Method and Description |
---|---|
CarFollowingModel |
getCarFollowingModel()
Many models that observe a GTU need to predict the imminent behavior of that GTU.
|
Speed |
getDesiredSpeed()
Returns the perceived desired speed of the neighbor.
|
GTUType |
getGtuType() |
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.
|
Length |
getWidth()
Returns the width of the GTU.
|
boolean |
isBrakingLightsOn() |
boolean |
isEmergencyLightsOn() |
boolean |
isFacingSameDirection() |
boolean |
isHonking() |
boolean |
isLeftTurnIndicatorOn() |
boolean |
isRightTurnIndicatorOn() |
HeadwayGTU |
moved(Length headway,
Speed speed,
Acceleration acceleration)
Creates a copy with different headway, speed and possibly acceleration.
|
compareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallel
GTUType getGtuType()
boolean isFacingSameDirection()
boolean isBrakingLightsOn()
boolean isLeftTurnIndicatorOn()
boolean isRightTurnIndicatorOn()
boolean isEmergencyLightsOn()
boolean isHonking()
HeadwayGTU moved(Length headway, Speed speed, Acceleration acceleration)
headway
- Length; headwayspeed
- Speed; speedacceleration
- Acceleration; accelerationCarFollowingModel getCarFollowingModel()
Parameters getParameters()
SpeedLimitInfo getSpeedLimitInfo()
Route getRoute()
null
if simply not known/estimated.Speed getDesiredSpeed()
Length getWidth()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.