|
SUMO - Simulation of Urban MObility
|
A model of the street in the city. More...
#include <AGStreet.h>
Public Member Functions | |
| AGStreet (const ROEdge *edge, SUMOReal popD=0, SUMOReal workD=0) | |
| SUMOReal | getLength () const |
| Provides the length of this edge. More... | |
| const std::string & | getName () const |
| Provides the id of this edge. More... | |
| SUMOReal | getPopulation () const |
| Provides the number of persons living in this street. More... | |
| SUMOReal | getWorkplaceNumber () const |
| Provides the number of work places in this street. More... | |
| void | print () const |
| Prints a summary of the properties of this street to standard output. More... | |
| void | setPopulation (const SUMOReal pop) |
| Modifies the number of persons living in this street. More... | |
| void | setWorkplaceNumber (const SUMOReal work) |
| Modifies the number of work places in this street. More... | |
Private Attributes | |
| const ROEdge * | edge |
| SUMOReal | pop |
| SUMOReal | work |
Friends | |
| class | AGPosition |
A model of the street in the city.
AGStreet represents a street in the city. It contains all model relevant properties and is associated with a ROEdge of the routing network.
Definition at line 57 of file AGStreet.h.
Definition at line 43 of file AGStreet.cpp.
References ROEdge::getLength(), pop, and work.
| SUMOReal AGStreet::getLength | ( | ) | const |
Provides the length of this edge.
Definition at line 57 of file AGStreet.cpp.
References edge, and ROEdge::getLength().
Referenced by AGPosition::compute2dPosition(), AGPosition::print(), and AGPosition::randomPositionInStreet().
| const std::string & AGStreet::getName | ( | ) | const |
Provides the id of this edge.
Definition at line 63 of file AGStreet.cpp.
References edge, and Named::getID().
Referenced by AGActivityTripWriter::addTrip().
| SUMOReal AGStreet::getPopulation | ( | ) | const |
Provides the number of persons living in this street.
Definition at line 69 of file AGStreet.cpp.
References pop.
| SUMOReal AGStreet::getWorkplaceNumber | ( | ) | const |
Provides the number of work places in this street.
Definition at line 81 of file AGStreet.cpp.
References work.
| void AGStreet::print | ( | ) | const |
Prints a summary of the properties of this street to standard output.
Definition at line 51 of file AGStreet.cpp.
References edge, Named::getID(), ROEdge::getLength(), pop, and work.
| void AGStreet::setPopulation | ( | const SUMOReal | pop | ) |
Modifies the number of persons living in this street.
| [in] | pop | the new number of inhabitants |
Definition at line 75 of file AGStreet.cpp.
References pop.
| void AGStreet::setWorkplaceNumber | ( | const SUMOReal | work | ) |
Modifies the number of work places in this street.
| [in] | work | the new number of work places |
Definition at line 87 of file AGStreet.cpp.
References work.
|
friend |
Definition at line 103 of file AGStreet.h.
|
private |
Definition at line 105 of file AGStreet.h.
Referenced by AGPosition::compute2dPosition(), getLength(), getName(), and print().
|
private |
Definition at line 106 of file AGStreet.h.
Referenced by AGStreet(), getPopulation(), print(), and setPopulation().
|
private |
Definition at line 107 of file AGStreet.h.
Referenced by AGStreet(), getWorkplaceNumber(), print(), and setWorkplaceNumber().