public class IncentiveCourtesy extends Object implements VoluntaryIncentive
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.ParameterTypeAcceleration |
B
Comfortable deceleration parameter type.
|
protected static org.opentrafficsim.base.parameters.ParameterTypeDouble |
DLEFT
Current left lane change desire.
|
protected static org.opentrafficsim.base.parameters.ParameterTypeDouble |
DRIGHT
Current right lane change desire.
|
protected static org.opentrafficsim.base.parameters.ParameterTypeDouble |
SOCIO
Socio-speed sensitivity parameter.
|
Constructor and Description |
---|
IncentiveCourtesy() |
Modifier and Type | Method and Description |
---|---|
Desire |
determineDesire(org.opentrafficsim.base.parameters.Parameters parameters,
LanePerception perception,
CarFollowingModel carFollowingModel,
Desire mandatoryDesire,
Desire voluntaryDesire)
Determines level of lane change desire for a lane change incentive.
|
String |
toString() |
protected static final org.opentrafficsim.base.parameters.ParameterTypeAcceleration B
protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble SOCIO
protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble DLEFT
protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble DRIGHT
public final Desire determineDesire(org.opentrafficsim.base.parameters.Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, Desire mandatoryDesire, Desire voluntaryDesire) throws org.opentrafficsim.base.parameters.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
determineDesire
in interface VoluntaryIncentive
parameters
- parametersperception
- perceptioncarFollowingModel
- car-following modelmandatoryDesire
- level of mandatory desire at current timevoluntaryDesire
- level of voluntary desire at current time, of voluntary incentives calculated beforeorg.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 exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.