Skip to content

Commit

Permalink
MSCFModel_CC: make isPlatoonLaneChangeSafe() public
Browse files Browse the repository at this point in the history
  • Loading branch information
michele-segata authored and namdre committed May 2, 2024
1 parent 17f664f commit 16f813f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/microsim/cfmodels/MSCFModel_CC.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ class MSCFModel_CC : public MSCFModel {
*/
double getACCAcceleration(const MSVehicle* veh) const;

bool isPlatoonLaneChangeSafe(MSVehicle* const veh, bool left) const;

/**
* @brief returns the number of lanes set in the configuration file
*/
Expand All @@ -269,7 +271,6 @@ class MSCFModel_CC : public MSCFModel {
void resetConsensus(const MSVehicle* veh) const;

private:
bool isPlatoonLaneChangeSafe(MSVehicle* const veh, bool left) const;
void changeWholePlatoonLane(MSVehicle* const veh, int direction) const;
void performAutoLaneChange(MSVehicle* const veh) const;
void performPlatoonLaneChange(MSVehicle* const veh) const;
Expand Down

0 comments on commit 16f813f

Please sign in to comment.