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