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.
Constructor and Description |
---|
IncentiveRoute() |
Modifier and Type | Method and Description |
---|---|
Desire |
determineDesire(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
LanePerception perception,
CarFollowingModel carFollowingModel,
Desire mandatoryDesire)
Determines level of lane change desire for a lane change incentive.
|
static double |
getDesireToLeave(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
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() |
public final Desire determineDesire(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
determineDesire
in interface MandatoryIncentive
behavioralCharacteristics
- behavioral characteristicsperception
- perceptioncarFollowingModel
- car-following modelmandatoryDesire
- level of mandatory desire at current timeorg.opentrafficsim.core.gtu.behavioralcharacteristics.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.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc, org.djunits.value.vdouble.scalar.Length x, int n, org.djunits.value.vdouble.scalar.Speed v) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
bc
- behavioral characteristicsx
- remaining distance for lane changesn
- number of required lane changesv
- current speedorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- in case of a parameter exceptionCopyright © 2014–2017 Delft University of Technology. All rights reserved.