public class IncentiveRoute extends Object implements MandatoryIncentive
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 |
---|---|
protected static ParameterTypeLength |
LOOKAHEAD
Look ahead parameter type.
|
static ParameterTypeDuration |
T0
Look-ahead time for mandatory lane changes parameter type.
|
Constructor and Description |
---|
IncentiveRoute() |
Modifier and Type | Method and Description |
---|---|
Desire |
determineDesire(Parameters parameters,
LanePerception perception,
CarFollowingModel carFollowingModel,
Desire mandatoryDesire)
Determines level of lane change desire for a lane change incentive.
|
static double |
getDesireToLeave(Parameters params,
Length x,
int n,
Speed v)
Calculates desire to leave a lane for a single infrastructure info.
|
String |
toString() |
protected static final ParameterTypeLength LOOKAHEAD
public static final ParameterTypeDuration T0
public final Desire determineDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) throws ParameterException, OperationalPlanException
determineDesire
in interface MandatoryIncentive
parameters
- parametersperception
- perceptioncarFollowingModel
- car-following modelmandatoryDesire
- level of mandatory desire at current timeParameterException
- if a parameter is not given or out of boundsOperationalPlanException
- in case of a perception exceptionpublic static double getDesireToLeave(Parameters params, Length x, int n, Speed v) throws ParameterException
params
- parametersx
- remaining distance for lane changesn
- number of required lane changesv
- current speedParameterException
- in case of a parameter exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.