Eclipse SUMO - Simulation of Urban MObility
|
A helper class which computes the lane number from given capacity. More...
#include <NBCapacity2Lanes.h>
Public Member Functions | |
int | get (double capacity) const |
Returns the number of lanes computed from the given capacity. | |
NBCapacity2Lanes (double divider) | |
Donstructor. | |
~NBCapacity2Lanes () | |
Destructor. | |
Private Attributes | |
double | myDivider |
The norming divider. | |
A helper class which computes the lane number from given capacity.
A helper class for the computation of the number of lanes an edge has in dependence to this edge's capacity. The computation is done by the (trivial) assumption, the number of lanes increases linear with the number of lanes.
Definition at line 37 of file NBCapacity2Lanes.h.
|
inline |
Donstructor.
[in] | divider | Value for the norming divider |
Definition at line 43 of file NBCapacity2Lanes.h.
|
inline |
Destructor.
Definition at line 47 of file NBCapacity2Lanes.h.
|
inline |
Returns the number of lanes computed from the given capacity.
Returns the estimated number of lanes by returning the given capacity divided by the norming divider given in the constructor.
[in] | capacity | The capacity to convert |
Definition at line 58 of file NBCapacity2Lanes.h.
References myDivider.
Referenced by NIImporter_VISUM::parse_Edges(), and NIImporter_VISUM::parse_Types().
|
private |