SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AGActivityGenHandler.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // The handler for parsing the statistics file.
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
14 // activitygen module
15 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
16 /****************************************************************************/
17 //
18 // This file is part of SUMO.
19 // SUMO is free software: you can redistribute it and/or modify
20 // it under the terms of the GNU General Public License as published by
21 // the Free Software Foundation, either version 3 of the License, or
22 // (at your option) any later version.
23 //
24 /****************************************************************************/
25 #ifndef AGACTIVITYGENHANDLER_H
26 #define AGACTIVITYGENHANDLER_H
27 
28 
29 // ===========================================================================
30 // included modules
31 // ===========================================================================
32 #ifdef _MSC_VER
33 #include <windows_config.h>
34 #else
35 #include <config.h>
36 #endif
37 
38 #include <string>
41 #include "city/AGCity.h"
42 #include "city/AGBusLine.h"
43 
44 
45 // ===========================================================================
46 // class declarations
47 // ===========================================================================
48 class RONet;
49 
50 
51 // ===========================================================================
52 // class definitions
53 // ===========================================================================
55 public:
61 
62 
64  virtual ~AGActivityGenHandler();
65 
66 
67 protected:
69 
70 
78  virtual void myStartElement(int element,
79  const SUMOSAXAttributes& attrs);
81 
82 protected:
84 
85 
89  void parseGeneralCityInfo(const SUMOSAXAttributes& attrs);
90  /*void parseInhabitants(const SUMOSAXAttributes &attrs);
91  void parseHouseholds(const SUMOSAXAttributes &attrs);
92  void parseChildrenAgeLimit(const SUMOSAXAttributes &attrs);
93  void parseRetirementAgeLimit(const SUMOSAXAttributes &attrs);
94  void parseCarRate(const SUMOSAXAttributes &attrs);
95  void parseUnemployment(const SUMOSAXAttributes &attrs);
96  void parseFootDistanceLimit(const SUMOSAXAttributes &attrs);
97  void parseIncomingTraffic(const SUMOSAXAttributes &attrs);
98  void parseOutgoingTraffic(const SUMOSAXAttributes &attrs);*/
99 
103  void parseParameters(const SUMOSAXAttributes& attrs);
104 
109  void parseStreets(const SUMOSAXAttributes& attrs);
110 
114  void parseCityGates(const SUMOSAXAttributes& attrs);
115 
119  void parseWorkHours();
120  void parseOpeningHour(const SUMOSAXAttributes& attrs);
121  void parseClosingHour(const SUMOSAXAttributes& attrs);
122 
126  void parseSchools();
127  void parseSchool(const SUMOSAXAttributes& attrs);
128 
133  void parseBusStation(const SUMOSAXAttributes& attrs);
134  void parseBusLine(const SUMOSAXAttributes& attrs);
135  void parseStations();
136  void parseRevStations();
137  void parseStation(const SUMOSAXAttributes& attrs);
138  void parseFrequency(const SUMOSAXAttributes& attrs);
139 
144  void parsePopulation();
145  //void parseChildrenAccompaniment();
146  void parseBracket(const SUMOSAXAttributes& attrs);
147 
148 
149 protected:
152 
154  std::string myCurrentObject;
156 
159 
162 
164  bool myProcess;
165 
166 
167 private:
170 
173 
174 };
175 
176 
177 #endif
178 
179 /****************************************************************************/
180 
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 parseSchool(const SUMOSAXAttributes &attrs)
void parseBusStation(const SUMOSAXAttributes &attrs)
SAX-handler base for SUMO-files.
RONet * net
The loaded network.
bool isRevStation
indicator whether the current station (in bus line context) is a reverse station or not...
virtual ~AGActivityGenHandler()
Destructor.
Definition: AGCity.h:59
bool myProcess
An indicator whether the next edge shall be read (internal edges are not read by now) ...
Encapsulated SAX-Attributes.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
void parseBusLine(const SUMOSAXAttributes &attrs)
void parseParameters(const SUMOSAXAttributes &attrs)
void parseFrequency(const SUMOSAXAttributes &attrs)
AGCity & myCity
The city to store the information into.
void parseBracket(const SUMOSAXAttributes &attrs)
The router&#39;s network representation.
Definition: RONet.h:65
void parseClosingHour(const SUMOSAXAttributes &attrs)
AGActivityGenHandler & operator=(const AGActivityGenHandler &src)
Invalidated assignment operator.
void parseOpeningHour(const SUMOSAXAttributes &attrs)
void parseStreets(const SUMOSAXAttributes &attrs)