54 #ifdef CHECK_MEMORY_LEAKS 56 #endif // CHECK_MEMORY_LEAKS 64 myCity(city), net(net) {}
131 }
catch (
const std::exception& e) {
150 }
catch (
const std::exception& e) {
167 }
catch (
const std::exception& e) {
196 }
catch (
const std::exception& e) {
214 }
catch (
const std::exception& e) {
233 }
catch (
const std::exception& e) {
248 }
catch (
const std::exception& e) {
273 AGSchool sch(capacity, posi, beginAge, endAge, openingHour, closingHour);
276 }
catch (
const std::exception& e) {
293 }
catch (
const std::exception& e) {
310 }
catch (
const std::exception& e) {
346 }
catch (
const std::exception& e) {
366 }
catch (
const std::exception& e) {
389 }
catch (
const std::exception& e) {
SUMOReal getLength() const
Returns the length of the edge.
void generateBuses(int start, int stop, int rate)
void setMaxTripTime(int time)
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)
A location in the 2D plane freely positioned on a street.
AGDataAndStatistics & statData
std::map< int, SUMOReal > endWorkHours
A model of the street in the city.
void parseSchool(const SUMOSAXAttributes &attrs)
void parseBusStation(const SUMOSAXAttributes &attrs)
SAX-handler base for SUMO-files.
RONet * net
The loaded network.
SUMOReal departureVariation
SUMOReal freeTimeActivityRate
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)
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.
AGBusLine * currentBusLine
void locateStation(AGPosition pos)
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;.
virtual SUMOReal getFloat(int id) const =0
Returns the SUMOReal-value of the named (by its enum-value) attribute.
std::list< AGSchool > schools
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.
std::map< int, SUMOReal > beginWorkHours
void parseBracket(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.
The router's network representation.
void parseClosingHour(const SUMOSAXAttributes &attrs)
std::map< int, SUMOReal > population
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.
void setWorkplaceNumber(const SUMOReal work)
Modifies the number of work places in this street.
std::map< int, SUMOReal > incoming
SUMOReal uniformRandomTrafficRate
void setPopulation(const SUMOReal pop)
Modifies the number of persons living in this street.
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.
std::map< int, SUMOReal > outgoing
std::vector< AGPosition > cityGates
std::map< int, AGPosition > busStations