public final class TrafficLightUtil extends Object
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.
Modifier and Type | Field and Description |
---|---|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeAcceleration |
B_YELLOW
Maximum deceleration for stopping for yellow traffic light.
|
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
respondToTrafficLight(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
HeadwayTrafficLight headwayTrafficLight,
CarFollowingModel carFollowingModel,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo)
Returns an acceleration as response to a traffic light, being positive infinity if ignored.
|
static org.djunits.value.vdouble.scalar.Acceleration |
respondToTrafficLights(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
Set<HeadwayTrafficLight> headwayTrafficLights,
CarFollowingModel carFollowingModel,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo)
Returns an acceleration as response to a set of traffic lights, being positive infinity if ignored.
|
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeAcceleration B_YELLOW
public static org.djunits.value.vdouble.scalar.Acceleration respondToTrafficLights(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, Set<HeadwayTrafficLight> headwayTrafficLights, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
behavioralCharacteristics
- behavioral characteristicsheadwayTrafficLights
- set of headway traffic lightscarFollowingModel
- car following modelspeed
- speedspeedLimitInfo
- speed limit infoorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not definedNullPointerException
- if any input is nullIllegalArgumentException
- if the traffic light is not downstreampublic static org.djunits.value.vdouble.scalar.Acceleration respondToTrafficLight(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, HeadwayTrafficLight headwayTrafficLight, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
behavioralCharacteristics
- behavioral characteristicsheadwayTrafficLight
- headway traffic lightcarFollowingModel
- car following modelspeed
- speedspeedLimitInfo
- speed limit infoorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not definedNullPointerException
- if any input is nullIllegalArgumentException
- if the traffic light is not downstreamCopyright © 2014–2016 Delft University of Technology. All rights reserved.