Skip to content

Commit

Permalink
update MOBIL and tim2ddriver docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeBouton committed Jul 2, 2020
1 parent c4beeb0 commit b1fc10f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/behaviors/MOBIL.jl
Expand Up @@ -2,11 +2,13 @@
MOBIL
See Treiber & Kesting, 'Modeling Lane-Changing Decisions with MOBIL'
# Constructor
MOBIL(timestep::Float64;mlon::LaneFollowingDriver=IntelligentDriverModel(),safe_decel::Float64=2.0, politeness::Float64=0.35,advantage_threshold::Float64=0.1)
# Constructor
`MOBIL(;kwargs...)`
The keyword arguments are the fields highlighted below.
# Fields
- `dir::Int`
- `dir::Int = DIR_MIDDLE`
- `mlon::LaneFollowingDriver=IntelligentDriverModel()`
- `safe_decel::Float64=2.0`
- `politeness::Float64=0.35`
Expand Down
4 changes: 3 additions & 1 deletion src/behaviors/tim_2d_driver.jl
Expand Up @@ -3,7 +3,9 @@
Driver that combines longitudinal driver and lateral driver into one model.
# Constructors
Tim2DDriver(timestep::Float64;mlon::LaneFollowingDriver=IntelligentDriverModel(), mlat::LateralDriverModel=ProportionalLaneTracker(), mlane::LaneChangeModel=TimLaneChanger(timestep))
`Tim2DDriver(;kwargs...)`
The keywords argument are the fields described below.
# Fields
- `mlon::LaneFollowingDriver = IntelligentDriverModel()` Longitudinal driving model
Expand Down

0 comments on commit b1fc10f

Please sign in to comment.