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) {
197 }
catch (
const std::exception& e) {
215 }
catch (
const std::exception& e) {
234 }
catch (
const std::exception& e) {
249 }
catch (
const std::exception& e) {
274 AGSchool sch(capacity, posi, beginAge, endAge, openingHour, closingHour);
277 }
catch (
const std::exception& e) {
294 }
catch (
const std::exception& e) {
311 }
catch (
const std::exception& e) {
347 }
catch (
const std::exception& e) {
367 }
catch (
const std::exception& e) {
390 }
catch (
const std::exception& e) {
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)
ROEdge * getEdge(const std::string &name) const
Retrieves an edge from the network.
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)
std::vector< AGStreet > streets
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.
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)
A basic edge for routing applications.
void parseFrequency(const SUMOSAXAttributes &attrs)
AGCity & myCity
The city to store the information into.
std::map< int, SUMOReal > beginWorkHours
void parseBracket(const SUMOSAXAttributes &attrs)
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.
std::map< int, SUMOReal > incoming
SUMOReal uniformRandomTrafficRate
static StringBijection< int > Tags
The names of SUMO-XML elements for use in netbuild.
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.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
std::map< int, SUMOReal > outgoing
std::vector< AGPosition > cityGates
std::map< int, AGPosition > busStations