SUMO - Simulation of Urban MObility
AGActivityGenHandler.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 // activitygen module
5 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6 /****************************************************************************/
7 //
8 // This program and the accompanying materials
9 // are made available under the terms of the Eclipse Public License v2.0
10 // which accompanies this distribution, and is available at
11 // http://www.eclipse.org/legal/epl-v20.html
12 //
13 /****************************************************************************/
22 // The handler for parsing the statistics file.
23 /****************************************************************************/
24 #ifndef AGACTIVITYGENHANDLER_H
25 #define AGACTIVITYGENHANDLER_H
26 
27 
28 // ===========================================================================
29 // included modules
30 // ===========================================================================
31 #ifdef _MSC_VER
32 #include <windows_config.h>
33 #else
34 #include <config.h>
35 #endif
36 
37 #include <string>
40 #include "city/AGCity.h"
41 #include "city/AGBusLine.h"
42 
43 
44 // ===========================================================================
45 // class declarations
46 // ===========================================================================
47 class RONet;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
54 public:
60 
61 
63  virtual ~AGActivityGenHandler();
64 
65 
66 protected:
68 
69 
77  virtual void myStartElement(int element,
78  const SUMOSAXAttributes& attrs);
80 
81 protected:
83 
84 
88  void parseGeneralCityInfo(const SUMOSAXAttributes& attrs);
89  /*void parseInhabitants(const SUMOSAXAttributes &attrs);
90  void parseHouseholds(const SUMOSAXAttributes &attrs);
91  void parseChildrenAgeLimit(const SUMOSAXAttributes &attrs);
92  void parseRetirementAgeLimit(const SUMOSAXAttributes &attrs);
93  void parseCarRate(const SUMOSAXAttributes &attrs);
94  void parseUnemployment(const SUMOSAXAttributes &attrs);
95  void parseFootDistanceLimit(const SUMOSAXAttributes &attrs);
96  void parseIncomingTraffic(const SUMOSAXAttributes &attrs);
97  void parseOutgoingTraffic(const SUMOSAXAttributes &attrs);*/
98 
102  void parseParameters(const SUMOSAXAttributes& attrs);
103 
108  void parseStreets(const SUMOSAXAttributes& attrs);
109 
113  void parseCityGates(const SUMOSAXAttributes& attrs);
114 
118  void parseWorkHours();
119  void parseOpeningHour(const SUMOSAXAttributes& attrs);
120  void parseClosingHour(const SUMOSAXAttributes& attrs);
121 
125  void parseSchools();
126  void parseSchool(const SUMOSAXAttributes& attrs);
127 
132  void parseBusStation(const SUMOSAXAttributes& attrs);
133  void parseBusLine(const SUMOSAXAttributes& attrs);
134  void parseStations();
135  void parseRevStations();
136  void parseStation(const SUMOSAXAttributes& attrs);
137  void parseFrequency(const SUMOSAXAttributes& attrs);
138 
143  void parsePopulation();
144  //void parseChildrenAccompaniment();
145  void parseBracket(const SUMOSAXAttributes& attrs);
146 
147 
148 protected:
151 
153  std::string myCurrentObject;
155 
158 
161 
163  bool myProcess;
164 
165 
166 private:
169 
172 
173 };
174 
175 
176 #endif
177 
178 /****************************************************************************/
179 
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:74
void parseClosingHour(const SUMOSAXAttributes &attrs)
AGActivityGenHandler & operator=(const AGActivityGenHandler &src)
Invalidated assignment operator.
void parseOpeningHour(const SUMOSAXAttributes &attrs)
void parseStreets(const SUMOSAXAttributes &attrs)