Interface AccelerationIncentive
-
- All Known Implementing Classes:
AccelerationBusStop
,AccelerationConflicts
,AccelerationNoRightOvertake
,AccelerationSpeedLimitTransition
,AccelerationTrafficLights
public interface AccelerationIncentive
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 27 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo)
Determine acceleration.default <T extends HeadwayLaneBasedObject>
Iterable<T>onRoute(Iterable<T> iterable, LaneBasedGTU gtu)
Returns an iterable with only those lane-based objects that are on the route, accounting for longitudinal direction of the GTU type.
-
-
-
Method Detail
-
accelerate
void accelerate(SimpleOperationalPlan simplePlan, RelativeLane lane, Length mergeDistance, LaneBasedGTU gtu, LanePerception perception, CarFollowingModel carFollowingModel, Speed speed, Parameters params, SpeedLimitInfo speedLimitInfo) throws OperationalPlanException, ParameterException, GTUException
Determine acceleration.- Parameters:
simplePlan
- SimpleOperationalPlan; simple plan to set the accelerationlane
- RelativeLane; lane on which to consider the accelerationmergeDistance
- Length; distance over which a lane change is impossiblegtu
- LaneBasedGTU; gtuperception
- LanePerception; perceptioncarFollowingModel
- CarFollowingModel; car-following modelspeed
- Speed; current speedparams
- Parameters; parametersspeedLimitInfo
- SpeedLimitInfo; speed limit info- Throws:
OperationalPlanException
- in case of an errorParameterException
- on missing parameterGTUException
- when there is a problem with the state of the GTU when planning a path
-
onRoute
default <T extends HeadwayLaneBasedObject> Iterable<T> onRoute(Iterable<T> iterable, LaneBasedGTU gtu)
Returns an iterable with only those lane-based objects that are on the route, accounting for longitudinal direction of the GTU type.- Type Parameters:
T
- type of lane-based object- Parameters:
iterable
- Iterable<T>; iterablegtu
- LaneBasedGTU; gtu- Returns:
- Iterable<T>; iterable with only those lane-based objects that are on the route
-
-