public final class LmrsUtil extends Object implements LmrsParameters
Copyright (c) 2013-2019 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 |
---|---|
static ParameterTypeAcceleration |
BCRIT
Maximum critical deceleration, e.g.
|
static ParameterTypeDuration |
DT
Fixed model time step.
|
static ParameterTypeDuration |
T
Current car-following headway.
|
static ParameterTypeDuration |
TAU
Headway relaxation time.
|
static ParameterTypeDuration |
TMAX
Maximum car-following headway.
|
static ParameterTypeDuration |
TMIN
Minimum car-following headway.
|
Modifier and Type | Method and Description |
---|---|
static SimpleOperationalPlan |
determinePlan(LaneBasedGTU gtu,
Time startTime,
CarFollowingModel carFollowingModel,
LaneChange laneChange,
LmrsData lmrsData,
LanePerception perception,
LinkedHashSet<MandatoryIncentive> mandatoryIncentives,
LinkedHashSet<VoluntaryIncentive> voluntaryIncentives)
Determines a simple representation of an operational plan.
|
static Desire |
getLaneChangeDesire(Parameters parameters,
LanePerception perception,
CarFollowingModel carFollowingModel,
LinkedHashSet<MandatoryIncentive> mandatoryIncentives,
LinkedHashSet<VoluntaryIncentive> voluntaryIncentives,
Map<Class<? extends Incentive>,Desire> desireMap)
Determines lane change desire for the given RSU.
|
static Acceleration |
singleAcceleration(Length distance,
Speed followerSpeed,
Speed leaderSpeed,
double desire,
Parameters params,
SpeedLimitInfo sli,
CarFollowingModel cfm)
Determine acceleration from car-following with desire-adjusted headway.
|
public static final ParameterTypeDuration DT
public static final ParameterTypeDuration TMIN
public static final ParameterTypeDuration T
public static final ParameterTypeDuration TMAX
public static final ParameterTypeDuration TAU
public static final ParameterTypeAcceleration BCRIT
public static SimpleOperationalPlan determinePlan(LaneBasedGTU gtu, Time startTime, CarFollowingModel carFollowingModel, LaneChange laneChange, LmrsData lmrsData, LanePerception perception, LinkedHashSet<MandatoryIncentive> mandatoryIncentives, LinkedHashSet<VoluntaryIncentive> voluntaryIncentives) throws GTUException, NetworkException, ParameterException, OperationalPlanException
gtu
- LaneBasedGTU; gtustartTime
- Time; start timecarFollowingModel
- CarFollowingModel; car-following modellaneChange
- LaneChange; lane change statuslmrsData
- LmrsData; LMRS dataperception
- LanePerception; perceptionmandatoryIncentives
- LinkedHashSet<MandatoryIncentive>; set of mandatory lane change incentivesvoluntaryIncentives
- LinkedHashSet<VoluntaryIncentive>; set of voluntary lane change incentivesGTUException
- gtu exceptionNetworkException
- network exceptionParameterException
- parameter exceptionOperationalPlanException
- operational plan exceptionpublic static Desire getLaneChangeDesire(Parameters parameters, LanePerception perception, CarFollowingModel carFollowingModel, LinkedHashSet<MandatoryIncentive> mandatoryIncentives, LinkedHashSet<VoluntaryIncentive> voluntaryIncentives, Map<Class<? extends Incentive>,Desire> desireMap) throws ParameterException, GTUException, OperationalPlanException
parameters
- Parameters; parametersperception
- LanePerception; perceptioncarFollowingModel
- CarFollowingModel; car-following modelmandatoryIncentives
- LinkedHashSet<MandatoryIncentive>; mandatory incentivesvoluntaryIncentives
- LinkedHashSet<VoluntaryIncentive>; voluntary incentivesdesireMap
- Map<Class<? extends Incentive>,Desire>; map where calculated desires are stored inParameterException
- if a parameter is not definedGTUException
- if there is no mandatory incentive, the model requires at least oneOperationalPlanException
- perception exceptionpublic static Acceleration singleAcceleration(Length distance, Speed followerSpeed, Speed leaderSpeed, double desire, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm) throws ParameterException
distance
- Length; distance from follower to leaderfollowerSpeed
- Speed; speed of followerleaderSpeed
- Speed; speed of leaderdesire
- double; level of lane change desireparams
- Parameters; parameterssli
- SpeedLimitInfo; speed limit infocfm
- CarFollowingModel; car-following modelParameterException
- if a parameter is not definedCopyright © 2014–2019 Delft University of Technology. All rights reserved.