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