Eclipse SUMO - Simulation of Urban MObility
MSLCHelper.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2013-2022 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // Common functions for lane change models
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 #include <vector>
23 
24 // ===========================================================================
25 // class declarations
26 // ===========================================================================
27 class MSVehicle;
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
37 class MSLCHelper {
38 public:
39 
46  static double getRoundaboutDistBonus(const MSVehicle& veh,
47  double bonusParam,
48  const MSVehicle::LaneQ& curr,
49  const MSVehicle::LaneQ& neigh,
50  const MSVehicle::LaneQ& best);
51 };
A lane change model developed by J. Erdmann.
Definition: MSLCHelper.h:37
static double getRoundaboutDistBonus(const MSVehicle &veh, double bonusParam, const MSVehicle::LaneQ &curr, const MSVehicle::LaneQ &neigh, const MSVehicle::LaneQ &best)
Computes the artificial bonus distance for roundabout lanes this additional distance reduces the sens...
Definition: MSLCHelper.cpp:39
Representation of a vehicle in the micro simulation.
Definition: MSVehicle.h:75
A structure representing the best lanes for continuing the current route starting at 'lane'.
Definition: MSVehicle.h:811