 |
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) {
@ AGEN_TAG_SCHOOL
schools object
void parseParameters(const SUMOSAXAttributes &attrs)
std::string myCurrentObject
The name of the object that is currently processed.
@ AGEN_TAG_OPENING
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.
@ AGEN_TAG_POPULATION
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
@ AGEN_TAG_STREET
streets object
@ AGEN_TAG_GENERAL
ActivityGen Tags.
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.
@ AGEN_TAG_BUSLINE
bus line
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.
@ AGEN_TAG_BRACKET
alternative definition for Population
@ AGEN_TAG_FREQUENCY
frequency of a object
void parseGeneralCityInfo(const SUMOSAXAttributes &attrs)
std::map< int, AGPosition > busStations
@ SUMO_ATTR_BEGIN
weights: time range begin
std::vector< AGStreet * > streets
@ AGEN_TAG_STATION
station for a certain vehicle
void parseStreets(const SUMOSAXAttributes &attrs)
@ AGEN_TAG_REV_STATIONS
rev stations for certain vehicles
std::map< int, double > beginWorkHours
std::map< int, double > outgoing
@ AGEN_ATTR_MAX_FOOT_DIST
void locateRevStation(AGPosition pos)
@ AGEN_TAG_WORKHOURS
workingHours object
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)
@ AGEN_ATTR_DEP_VARIATION
RONet * net
The loaded network.
AGBusLine * currentBusLine
void parseOpeningHour(const SUMOSAXAttributes &attrs)
@ AGEN_TAG_CLOSING
closing for workingHours object
@ AGEN_TAG_STATIONS
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.
@ AGEN_TAG_SCHOOLS
school object
std::map< int, double > incoming
A location in the 2D plane freely positioned on a street.
@ AGEN_ATTR_UNI_RAND_TRAFFIC
double getLength() const
Returns the length of the edge.
void locateStation(AGPosition pos)
void parseBracket(const SUMOSAXAttributes &attrs)
@ AGEN_TAG_PARAM
parameters
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< AGPosition > cityGates
double freeTimeActivityRate
@ AGEN_TAG_ENTRANCE
alternative definition for city entrances
@ AGEN_ATTR_OUT_WORKPOSITION
@ AGEN_TAG_CITYGATES
city entrances
@ SUMO_ATTR_END
weights: time range end
void parseSchool(const SUMOSAXAttributes &attrs)
@ AGEN_TAG_BUSSTATION
busStation and bus objects
@ AGEN_ATTR_MAX_TRIP_DURATION
void generateBuses(int start, int stop, int rate)
@ AGEN_ATTR_UNEMPLOYEMENT
void parseStation(const SUMOSAXAttributes &attrs)
Encapsulated SAX-Attributes.
AGActivityGenHandler(AGCity &city, RONet *net)
Constructor.
AGDataAndStatistics & statData
std::list< AGSchool > schools
virtual ~AGActivityGenHandler()
Destructor.