 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
52 myCity(city), net(net) {}
119 }
catch (
const std::exception& e) {
139 }
catch (
const std::exception& e) {
156 }
catch (
const std::exception& e) {
178 if (street ==
nullptr) {
185 }
catch (
const std::exception& e) {
203 }
catch (
const std::exception& e) {
222 }
catch (
const std::exception& e) {
237 }
catch (
const std::exception& e) {
262 AGSchool sch(capacity, posi, beginAge, endAge, openingHour, closingHour);
265 }
catch (
const std::exception& e) {
282 }
catch (
const std::exception& e) {
299 }
catch (
const std::exception& e) {
338 }
catch (
const std::exception& e) {
358 }
catch (
const std::exception& e) {
381 }
catch (
const std::exception& e) {
void parseParameters(const SUMOSAXAttributes &attrs)
std::string myCurrentObject
The name of the object that is currently processed.
opening for workingHours object
virtual bool hasAttribute(int id) const =0
Returns the information whether the named (by its enum-value) attribute is within the current list.
population and children accompaniment brackets
virtual std::string getString(int id) const =0
Returns the string-value of the named (by its enum-value) attribute.
SAX-handler base for SUMO-files.
std::list< AGBusLine > busLines
ROEdge * getEdge(const std::string &name) const
Retrieves an edge from the network.
virtual int getInt(int id) const =0
Returns the int-value of the named (by its enum-value) attribute.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
void setWorkplaceNumber(const double work)
Modifies the number of work places in this street.
double uniformRandomTrafficRate
double departureVariation
const AGStreet & getStreet(const std::string &edge)
The router's network representation.
void parseCityGates(const SUMOSAXAttributes &attrs)
std::map< int, double > population
virtual double getFloat(int id) const =0
Returns the double-value of the named (by its enum-value) attribute.
alternative definition for Population
void parseGeneralCityInfo(const SUMOSAXAttributes &attrs)
std::map< int, AGPosition > busStations
weights: time range begin
std::vector< AGStreet * > streets
station for a certain vehicle
void parseStreets(const SUMOSAXAttributes &attrs)
rev stations for certain vehicles
std::map< int, double > beginWorkHours
std::map< int, double > outgoing
void locateRevStation(AGPosition pos)
AGCity & myCity
The city to store the information into.
void parseBusLine(const SUMOSAXAttributes &attrs)
A model of the street in the city.
void parseClosingHour(const SUMOSAXAttributes &attrs)
T getOpt(int attr, const char *objectid, bool &ok, T defaultValue, bool report=true) const
Tries to read given attribute assuming it is an int.
void parseFrequency(const SUMOSAXAttributes &attrs)
RONet * net
The loaded network.
AGBusLine * currentBusLine
void parseOpeningHour(const SUMOSAXAttributes &attrs)
closing for workingHours object
stations for certain vehicles
void setPopulation(const double pop)
Modifies the number of persons living in this street.
bool isRevStation
indicator whether the current station (in bus line context) is a reverse station or not.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void setMaxTripTime(int time)
std::map< int, double > endWorkHours
void parseBusStation(const SUMOSAXAttributes &attrs)
static StringBijection< int > Tags
The names of SUMO-XML elements for use in netbuild.
std::map< int, double > incoming
A location in the 2D plane freely positioned on a street.
double getLength() const
Returns the length of the edge.
void locateStation(AGPosition pos)
void parseBracket(const SUMOSAXAttributes &attrs)
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< AGPosition > cityGates
double freeTimeActivityRate
alternative definition for city entrances
void parseSchool(const SUMOSAXAttributes &attrs)
busStation and bus objects
void generateBuses(int start, int stop, int rate)
void parseStation(const SUMOSAXAttributes &attrs)
Encapsulated SAX-Attributes.
AGActivityGenHandler(AGCity &city, RONet *net)
Constructor.
AGDataAndStatistics & statData
std::list< AGSchool > schools
virtual ~AGActivityGenHandler()
Destructor.