Autopysta
Loading...
Searching...
No Matches
lcm_gipps.h
Go to the documentation of this file.
1
12#ifndef _LCMGIPPS
13#define _LCMGIPPS
14
15#include "model.h"
16#include "Exception.h"
17
26class p_lcm_gipps : public params {
27public:
28 double _pvl;
29 double _pvh;
30
37
47 p_lcm_gipps(double pvlow, double pvhigh);
48};
49
59class lcm_gipps : public lcm {
75 bool is_lch_possible(point *leader, point *follower, point *new_leader, point *new_follower, model *cfpars, params *lcmpars) override;
76
77public:
84
91
107 bool lch_left(point *leader, point *subject, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override;
108
124 bool lch_right(point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override;
125};
126
127#endif
Lane-changing model based on the Gipps (1986) behavioral model.
Definition lcm_gipps.h:59
bool lch_left(point *leader, point *subject, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override
Determine if the vehicle should change lanes to the left.
lcm_gipps(p_lcm_gipps *p)
Constructor for the Gipps lane-changing model with custom parameters.
lcm_gipps()
Default constructor for the Gipps lane-changing model.
bool lch_right(point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override
Determine if the vehicle should change lanes to the right.
Abstract class for lane-changing models.
Definition model.h:129
Abstract car-following model class.
Definition model.h:30
Parameter manager for the Gipps (1986) lane-changing model.
Definition lcm_gipps.h:26
p_lcm_gipps()
Default constructor for the Gipps lane-changing model parameters.
p_lcm_gipps(double pvlow, double pvhigh)
Constructor with custom lane-changing parameters.
double _pvl
Fraction of free-flow speed for overtaking (left lane change).
Definition lcm_gipps.h:28
double _pvh
Fraction of free-flow speed for returning (right lane change).
Definition lcm_gipps.h:29
Base class for car-following model parameters.
Definition params.h:24
Represents a point in time for a vehicle in a traffic simulation.
Definition point.h:23
File for the model and lcm classes definitions (short description).