public final class LmrsUtil extends Object implements LmrsParameters
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 | Method and Description |
|---|---|
(package private) static boolean |
acceptGapNeighbors(LanePerception perception,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
SpeedLimitInfo sli,
CarFollowingModel cfm,
double desire,
org.djunits.value.vdouble.scalar.Speed ownSpeed,
org.opentrafficsim.core.network.LateralDirectionality lat)
Determine whether a gap is acceptable.
|
static SimpleOperationalPlan |
determinePlan(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Time startTime,
CarFollowingModel carFollowingModel,
LaneOperationalPlanBuilder.LaneChange laneChange,
LmrsData lmrsData,
LanePerception perception,
LinkedHashSet<MandatoryIncentive> mandatoryIncentives,
LinkedHashSet<VoluntaryIncentive> voluntaryIncentives,
Map<Class<? extends Incentive>,Desire> desireMap)
Determines a simple representation of an operational plan.
|
(package private) static void |
resetDesiredHeadway(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc)
Resets value for T depending on level of lane change desire.
|
(package private) static void |
setDesiredHeadway(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
double desire)
Sets value for T depending on level of lane change desire.
|
static org.djunits.value.vdouble.scalar.Acceleration |
singleAcceleration(org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Speed followerSpeed,
org.djunits.value.vdouble.scalar.Speed leaderSpeed,
double desire,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
SpeedLimitInfo sli,
CarFollowingModel cfm)
Determine acceleration from car-following.
|
public static SimpleOperationalPlan determinePlan(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Time startTime, CarFollowingModel carFollowingModel, LaneOperationalPlanBuilder.LaneChange laneChange, LmrsData lmrsData, LanePerception perception, LinkedHashSet<MandatoryIncentive> mandatoryIncentives, LinkedHashSet<VoluntaryIncentive> voluntaryIncentives, Map<Class<? extends Incentive>,Desire> desireMap) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
gtu - gtustartTime - start timecarFollowingModel - car-following modellaneChange - lane change statuslmrsData - LMRS dataperception - perceptionmandatoryIncentives - set of mandatory lane change incentivesvoluntaryIncentives - set of voluntary lane change incentivesdesireMap - map where calculated desires are stored inorg.opentrafficsim.core.gtu.GTUException - gtu exceptionorg.opentrafficsim.core.network.NetworkException - network exceptionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - parameter exceptionorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - operational plan exceptionstatic boolean acceptGapNeighbors(LanePerception perception, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, org.opentrafficsim.core.network.LateralDirectionality lat) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
perception - perceptionbc - behavioral characteristicssli - speed limit infocfm - car-following modeldesire - level of lane change desireownSpeed - own speedlat - lateral direction for synchronizationorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - perception exceptionstatic void setDesiredHeadway(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
double desire)
throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
bc - behavioral characteristicsdesire - lane change desireorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if T, TMIN or TMAX is not in the behavioral characteristicsstatic void resetDesiredHeadway(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc)
throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
bc - behavioral characteristicsorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if T is not in the behavioral characteristicspublic static org.djunits.value.vdouble.scalar.Acceleration singleAcceleration(org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Speed followerSpeed,
org.djunits.value.vdouble.scalar.Speed leaderSpeed,
double desire,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics bc,
SpeedLimitInfo sli,
CarFollowingModel cfm)
throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
distance - distance from follower to leaderfollowerSpeed - speed of followerleaderSpeed - speed of leaderdesire - level of lane change desirebc - behavioral characteristicssli - speed limit infocfm - car-following modelorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if a parameter is not definedCopyright © 2014–2017 Delft University of Technology. All rights reserved.