public final class LmrsUtil extends Object implements LmrsParameters
Copyright (c) 2013-2018 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
- gtustartTime
- start timecarFollowingModel
- car-following modellaneChange
- lane change statuslmrsData
- LMRS dataperception
- perceptionmandatoryIncentives
- set of mandatory lane change incentivesvoluntaryIncentives
- 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
- parametersperception
- perceptioncarFollowingModel
- car-following modelmandatoryIncentives
- mandatory incentivesvoluntaryIncentives
- voluntary incentivesdesireMap
- 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
- distance from follower to leaderfollowerSpeed
- speed of followerleaderSpeed
- speed of leaderdesire
- level of lane change desireparams
- parameterssli
- speed limit infocfm
- car-following modelParameterException
- if a parameter is not definedCopyright © 2014–2018 Delft University of Technology. All rights reserved.