public final class TrafficLightUtil extends Object
Copyright (c) 2013-2018 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.base.parameters.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.base.parameters.Parameters parameters,
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.base.parameters.Parameters parameters,
Iterable<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.base.parameters.ParameterTypeAcceleration B_YELLOW
public static org.djunits.value.vdouble.scalar.Acceleration respondToTrafficLights(org.opentrafficsim.base.parameters.Parameters parameters, Iterable<HeadwayTrafficLight> headwayTrafficLights, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) throws org.opentrafficsim.base.parameters.ParameterException
parameters
- parametersheadwayTrafficLights
- set of headway traffic lightscarFollowingModel
- car following modelspeed
- speedspeedLimitInfo
- speed limit infoorg.opentrafficsim.base.parameters.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.base.parameters.Parameters parameters, HeadwayTrafficLight headwayTrafficLight, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) throws org.opentrafficsim.base.parameters.ParameterException
parameters
- parametersheadwayTrafficLight
- headway traffic lightcarFollowingModel
- car following modelspeed
- speedspeedLimitInfo
- speed limit infoorg.opentrafficsim.base.parameters.ParameterException
- if a parameter is not definedNullPointerException
- if any input is nullIllegalArgumentException
- if the traffic light is not downstreamCopyright © 2014–2018 Delft University of Technology. All rights reserved.