11 #include "Vehicle.hpp"
24 static double _avgLength;
29 Street(
int,
int,
double,
int);
36 bool isFull()
const noexcept;
38 int getNLanes()
const noexcept;
43 double getVMax()
const noexcept;
Street class.
Definition: Street.hpp:14
void setNLanes(int)
Set the number of lanes.
Definition: Street.cpp:68
double getVehicleDensity() const noexcept
get instant vehicle density for the stree
Definition: Street.cpp:108
void addVehicle(std::shared_ptr< Vehicle >)
add a vehicle to the street
Definition: Street.cpp:114
int getNVehicles() const noexcept
Get the number of vehicles on the street.
Definition: Street.cpp:76
Street(int, int, double, int)
Create a new Street object.
Definition: Street.cpp:15
double getInputVelocity() const noexcept
get instant input velocity for the street
Definition: Street.cpp:94
int getIndex() const noexcept
Get the index of the street.
Definition: Street.cpp:56
double getVMax() const noexcept
Get the maximum velocity.
Definition: Street.cpp:101
bool isFull() const noexcept
Tells if the street is full.
Definition: Street.cpp:62
double getDensity() const noexcept
get instant density for the street (in percentage)
Definition: Street.cpp:103
double getLength() const noexcept
Get the length of the street.
Definition: Street.cpp:59
void setVMax(double)
Set the maximum velocity.
Definition: Street.cpp:80
void remVehicle()
remove a vehicle from the street
Definition: Street.cpp:124
int getOrigin() const noexcept
Get the origin node index.
Definition: Street.cpp:50
int getDestination() const noexcept
Get the destination node index.
Definition: Street.cpp:53