|
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) throw () | |
| SUMOReal | getLength () const throw () |
| Provides the length of this edge. | |
| const std::string & | getName () const throw () |
| Provides the id of this edge. | |
| int | getPopulation () const throw () |
| Provides the number of persons living in this street. | |
| int | getWorkplaceNumber () const throw () |
| Provides the number of work places in this street. | |
| void | print () const throw () |
| Prints a summary of the properties of this street to standard output. | |
| void | setPopulation (const int &pop) throw () |
| Modifies the number of persons living in this street. | |
| void | setWorkplaceNumber (const int &work) throw () |
| Modifies the number of work places in this street. | |
Private Attributes | |
| const ROEdge * | edge |
| int | pop |
| int | 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 54 of file AGStreet.h.
| AGStreet::AGStreet | ( | const ROEdge * | edge, |
| SUMOReal | popD = 0, |
||
| SUMOReal | workD = 0 |
||
| ) | throw () |
Definition at line 40 of file AGStreet.cpp.
| SUMOReal AGStreet::getLength | ( | ) | const throw () |
Provides the length of this edge.
Definition at line 56 of file AGStreet.cpp.
References edge, and ROEdge::getLength().
Referenced by AGPosition::compute2dPosition(), and AGPosition::print().
| const std::string & AGStreet::getName | ( | ) | const throw () |
Provides the id of this edge.
Definition at line 63 of file AGStreet.cpp.
References edge, and ROEdge::getID().
Referenced by AGActivityTripWriter::addTrip().
| int AGStreet::getPopulation | ( | ) | const throw () |
Provides the number of persons living in this street.
Definition at line 70 of file AGStreet.cpp.
References pop.
| int AGStreet::getWorkplaceNumber | ( | ) | const throw () |
Provides the number of work places in this street.
Definition at line 84 of file AGStreet.cpp.
References work.
| void AGStreet::print | ( | ) | const throw () |
Prints a summary of the properties of this street to standard output.
Definition at line 49 of file AGStreet.cpp.
References edge, ROEdge::getID(), ROEdge::getLength(), pop, and work.
| void AGStreet::setPopulation | ( | const int & | pop | ) | throw () |
Modifies the number of persons living in this street.
| [in] | pop | the new number of inhabitants |
Definition at line 77 of file AGStreet.cpp.
| void AGStreet::setWorkplaceNumber | ( | const int & | work | ) | throw () |
Modifies the number of work places in this street.
| [in] | work | the new number of work places |
Definition at line 91 of file AGStreet.cpp.
friend class AGPosition [friend] |
Definition at line 100 of file AGStreet.h.
const ROEdge* AGStreet::edge [private] |
Definition at line 102 of file AGStreet.h.
Referenced by AGPosition::compute2dPosition(), getLength(), getName(), and print().
int AGStreet::pop [private] |
Definition at line 103 of file AGStreet.h.
Referenced by getPopulation(), and print().
int AGStreet::work [private] |
Definition at line 104 of file AGStreet.h.
Referenced by getWorkplaceNumber(), and print().