public final class ConflictUtil extends Object
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 | Class and Description |
---|---|
static class |
ConflictUtil.ConflictPlans
Holds the tactical plans of a driver considering conflicts.
|
Modifier and Type | Field and Description |
---|---|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration |
MIN_GAP
Minimum time gap between events.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeLength |
S0_CONF
Stopping distance at conflicts.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeLength |
STOP_AREA
Area before stop line where one is considered arrived at the intersection.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration |
TI
Parameter of how much time before departure a bus indicates its departure to get priority.
|
static org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble |
TIME_FACTOR
Multiplication factor on time for conservative assessment.
|
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
approachConflicts(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SortedSet<HeadwayConflict> conflicts,
SortedSet<HeadwayGTU> leaders,
CarFollowingModel carFollowingModel,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.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,
SortedSet<HeadwayGTU> leaders,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel)
Approach a give-way conflict.
|
static boolean |
stopForPriorityConflict(HeadwayConflict conflict,
SortedSet<HeadwayGTU> leaders,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
ConflictUtil.ConflictPlans yieldPlans)
Approach a priority conflict.
|
static boolean |
stopForStopConflict(HeadwayConflict conflict,
SortedSet<HeadwayGTU> leaders,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Length vehicleLength,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
SpeedLimitInfo speedLimitInfo,
CarFollowingModel carFollowingModel)
Approach a stop conflict.
|
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration MIN_GAP
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeLength S0_CONF
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDouble TIME_FACTOR
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeLength STOP_AREA
public static final org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterTypeDuration TI
public static org.djunits.value.vdouble.scalar.Acceleration approachConflicts(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, SortedSet<HeadwayConflict> conflicts, SortedSet<HeadwayGTU> leaders, CarFollowingModel carFollowingModel, org.djunits.value.vdouble.scalar.Length vehicleLength, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, SpeedLimitInfo speedLimitInfo, ConflictUtil.ConflictPlans conflictPlans, LaneBasedGTU gtu) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
behavioralCharacteristics
- behavioral characteristicsconflicts
- set of conflicts to approachleaders
- leading vehiclescarFollowingModel
- car-following modelvehicleLength
- length of vehiclespeed
- current speedacceleration
- current accelerationspeedLimitInfo
- speed limit infoconflictPlans
- set of plans for conflictgtu
- gtuorg.opentrafficsim.core.gtu.GTUException
- in case of an unsupported conflict ruleorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not defined or out of boundspublic static boolean stopForPriorityConflict(HeadwayConflict conflict, SortedSet<HeadwayGTU> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, ConflictUtil.ConflictPlans yieldPlans) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
conflict
- conflict to approachleaders
- leading vehicles in own lanespeed
- current speedvehicleLength
- vehicle lengthbehavioralCharacteristics
- behavioral characteristicsyieldPlans
- set of plans for yielding with priorityorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if parameter B is not definedpublic static boolean stopForGiveWayConflict(HeadwayConflict conflict, SortedSet<HeadwayGTU> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
conflict
- conflictleaders
- leadersspeed
- current speedacceleration
- current accelerationvehicleLength
- vehicle lengthbehavioralCharacteristics
- behavioral characteristicsspeedLimitInfo
- speed limit infocarFollowingModel
- car-following modelorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not definedpublic static boolean stopForStopConflict(HeadwayConflict conflict, SortedSet<HeadwayGTU> leaders, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Length vehicleLength, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, SpeedLimitInfo speedLimitInfo, CarFollowingModel carFollowingModel) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
conflict
- conflictleaders
- leadersspeed
- current speedacceleration
- current accelerationvehicleLength
- vehicle lengthbehavioralCharacteristics
- behavioral characteristicsspeedLimitInfo
- speed limit infocarFollowingModel
- car-following modelorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not definedpublic static boolean stopForAllStopConflict(HeadwayConflict conflict, ConflictUtil.ConflictPlans conflictPlans)
conflict
- conflict to approachconflictPlans
- set of plans for conflictCopyright © 2014–2017 Delft University of Technology. All rights reserved.