Autopysta
Loading...
Searching...
No Matches
no_lch.h
Go to the documentation of this file.
1
12#ifndef _NOLCH
13#define _NOLCH
14
15#include "model.h"
16
25class no_lch : public lcm {
40 bool is_lch_possible(point *leader, point *follower, point *new_leader, point *new_follower, model *cfpars, params *lcmpars) override;
41
42public:
50
64 bool lch_left(point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override;
65
79 bool lch_right(point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override;
80};
81
82#endif
Abstract class for lane-changing models.
Definition model.h:129
Abstract car-following model class.
Definition model.h:30
A lane-changing model that forbids any lane changes.
Definition no_lch.h:25
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.
no_lch()
Default constructor for the no_lch model.
bool lch_left(point *leader, point *follower, point *new_leader, point *new_follower, model *cfm, params *lcmpars) override
Determine if the vehicle should change lanes to the left.
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).