public final class ConflictUtil extends Object
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 | Class and Description |
---|---|
static class |
ConflictUtil.ConflictPlans
Holds the tactical plans of a driver considering conflicts.
|
Modifier and Type | Field and Description |
---|---|
static ParameterTypeAcceleration |
B
Comfortable deceleration.
|
static ParameterTypeAcceleration |
BCRIT
Critical deceleration.
|
static ParameterTypeDuration |
MIN_GAP
Minimum time gap between events.
|
static ParameterTypeLength |
S0
Stopping distance.
|
static ParameterTypeLength |
S0_CONF
Stopping distance at conflicts.
|
static ParameterTypeLength |
STOP_AREA
Area before stop line where one is considered arrived at the intersection.
|
static ParameterTypeDuration |
TI
Parameter of how much time before departure a bus indicates its departure to get priority.
|
static ParameterTypeDouble |
TIME_FACTOR
Multiplication factor on time for conservative assessment.
|
Modifier and Type | Method and Description |
---|---|
static Acceleration |
approachConflicts(Parameters parameters,
PerceptionCollectable<HeadwayConflict,Conflict> conflicts,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
CarFollowingModel carFollowingModel,
Length vehicleLength,
Length vehicleWidth,
Speed speed,
Acceleration acceleration,
SpeedLimitInfo speedLimitInfo,
ConflictUtil.ConflictPlans conflictPlans,
LaneBasedGTU gtu)
Approach conflicts by applying appropriate acceleration (or deceleration).
|
static boolean |
stopForAllStopConflict(HeadwayConflict conflict,
ConflictUtil.ConflictPlans conflictPlans)
Approach an all-stop conflict.
|
static boolean |
stopForGiveWayConflict(HeadwayConflict conflict,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
Speed speed,
Acceleration acceleration,
Length vehicleLength,
Parameters parameters,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel,
ParameterTypeAcceleration bType)
Approach a give-way conflict.
|
static boolean |
stopForPriorityConflict(HeadwayConflict conflict,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
Speed speed,
Length vehicleLength,
Parameters parameters,
ConflictUtil.ConflictPlans yieldPlans)
Approach a priority conflict.
|
static boolean |
stopForStopConflict(HeadwayConflict conflict,
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders,
Speed speed,
Acceleration acceleration,
Length vehicleLength,
Parameters parameters,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel,
ParameterTypeAcceleration bType)
Approach a stop conflict.
|
public static final ParameterTypeDuration MIN_GAP
public static final ParameterTypeAcceleration B
public static final ParameterTypeAcceleration BCRIT
public static final ParameterTypeLength S0
public static final ParameterTypeLength S0_CONF
public static final ParameterTypeDouble TIME_FACTOR
public static final ParameterTypeLength STOP_AREA
public static final ParameterTypeDuration TI
public static Acceleration approachConflicts(Parameters parameters, PerceptionCollectable<HeadwayConflict,Conflict> conflicts, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, CarFollowingModel carFollowingModel, Length vehicleLength, Length vehicleWidth, Speed speed, Acceleration acceleration, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans, LaneBasedGTU gtu) throws GTUException, ParameterException
parameters
- Parameters; parametersconflicts
- PerceptionCollectable<HeadwayConflict,Conflict>; set of conflicts to approachleaders
- PerceptionCollectable<HeadwayGTU,LaneBasedGTU>; leading vehiclescarFollowingModel
- CarFollowingModel; car-following modelvehicleLength
- Length; length of vehiclevehicleWidth
- Length; width of vehiclespeed
- Speed; current speedacceleration
- Acceleration; current accelerationspeedLimitInfo
- SpeedLimitInfo; speed limit infoconflictPlans
- ConflictPlans; set of plans for conflictgtu
- LaneBasedGTU; gtuGTUException
- in case of an unsupported conflict ruleParameterException
- if a parameter is not defined or out of boundspublic static boolean stopForPriorityConflict(HeadwayConflict conflict, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Speed speed, Length vehicleLength, Parameters parameters, ConflictUtil.ConflictPlans yieldPlans) throws ParameterException
conflict
- HeadwayConflict; conflict to approachleaders
- PerceptionCollectable<HeadwayGTU,LaneBasedGTU>; leading vehicles in own lanespeed
- Speed; current speedvehicleLength
- Length; vehicle lengthparameters
- Parameters; parametersyieldPlans
- ConflictPlans; set of plans for yielding with priorityParameterException
- if parameter B is not definedpublic static boolean stopForGiveWayConflict(HeadwayConflict conflict, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Speed speed, Acceleration acceleration, Length vehicleLength, Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, ParameterTypeAcceleration bType) throws ParameterException
conflict
- HeadwayConflict; conflictleaders
- PerceptionCollectable<HeadwayGTU,LaneBasedGTU>; leadersspeed
- Speed; current speedacceleration
- Acceleration; current accelerationvehicleLength
- Length; vehicle lengthparameters
- Parameters; parametersspeedLimitInfo
- SpeedLimitInfo; speed limit infocarFollowingModel
- CarFollowingModel; car-following modelbType
- ParameterTypeAcceleration; parameter type for considered decelerationParameterException
- if a parameter is not definedpublic static boolean stopForStopConflict(HeadwayConflict conflict, PerceptionCollectable<HeadwayGTU,LaneBasedGTU> leaders, Speed speed, Acceleration acceleration, Length vehicleLength, Parameters parameters, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel, ParameterTypeAcceleration bType) throws ParameterException
conflict
- HeadwayConflict; conflictleaders
- PerceptionCollectable<HeadwayGTU,LaneBasedGTU>; leadersspeed
- Speed; current speedacceleration
- Acceleration; current accelerationvehicleLength
- Length; vehicle lengthparameters
- Parameters; parametersspeedLimitInfo
- SpeedLimitInfo; speed limit infocarFollowingModel
- CarFollowingModel; car-following modelbType
- ParameterTypeAcceleration; parameter type for considered decelerationParameterException
- if a parameter is not definedpublic static boolean stopForAllStopConflict(HeadwayConflict conflict, ConflictUtil.ConflictPlans conflictPlans)
conflict
- HeadwayConflict; conflict to approachconflictPlans
- ConflictPlans; set of plans for conflictCopyright © 2014–2019 Delft University of Technology. All rights reserved.