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-2018 German Aerospace Center (DLR) and others.
4 // activitygen module
5 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 // SPDX-License-Identifier: EPL-2.0
11 /****************************************************************************/
20 // The handler for parsing the statistics file.
21 /****************************************************************************/
22 #ifndef AGACTIVITYGENHANDLER_H
23 #define AGACTIVITYGENHANDLER_H
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #include <config.h>
30 
31 #include <string>
34 #include "city/AGCity.h"
35 #include "city/AGBusLine.h"
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class RONet;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
48 public:
54 
55 
57  virtual ~AGActivityGenHandler();
58 
59 
60 protected:
62 
63 
71  virtual void myStartElement(int element,
72  const SUMOSAXAttributes& attrs);
74 
75 protected:
77 
78 
82  void parseGeneralCityInfo(const SUMOSAXAttributes& attrs);
83  /*void parseInhabitants(const SUMOSAXAttributes &attrs);
84  void parseHouseholds(const SUMOSAXAttributes &attrs);
85  void parseChildrenAgeLimit(const SUMOSAXAttributes &attrs);
86  void parseRetirementAgeLimit(const SUMOSAXAttributes &attrs);
87  void parseCarRate(const SUMOSAXAttributes &attrs);
88  void parseUnemployment(const SUMOSAXAttributes &attrs);
89  void parseFootDistanceLimit(const SUMOSAXAttributes &attrs);
90  void parseIncomingTraffic(const SUMOSAXAttributes &attrs);
91  void parseOutgoingTraffic(const SUMOSAXAttributes &attrs);*/
92 
96  void parseParameters(const SUMOSAXAttributes& attrs);
97 
102  void parseStreets(const SUMOSAXAttributes& attrs);
103 
107  void parseCityGates(const SUMOSAXAttributes& attrs);
108 
112  void parseWorkHours();
113  void parseOpeningHour(const SUMOSAXAttributes& attrs);
114  void parseClosingHour(const SUMOSAXAttributes& attrs);
115 
119  void parseSchools();
120  void parseSchool(const SUMOSAXAttributes& attrs);
121 
126  void parseBusStation(const SUMOSAXAttributes& attrs);
127  void parseBusLine(const SUMOSAXAttributes& attrs);
128  void parseStations();
129  void parseRevStations();
130  void parseStation(const SUMOSAXAttributes& attrs);
131  void parseFrequency(const SUMOSAXAttributes& attrs);
132 
137  void parsePopulation();
138  //void parseChildrenAccompaniment();
139  void parseBracket(const SUMOSAXAttributes& attrs);
140 
141 
142 protected:
145 
147  std::string myCurrentObject;
149 
152 
155 
157  bool myProcess;
158 
159 
160 private:
163 
166 
167 };
168 
169 
170 #endif
171 
172 /****************************************************************************/
173 
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:53
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:68
void parseClosingHour(const SUMOSAXAttributes &attrs)
AGActivityGenHandler & operator=(const AGActivityGenHandler &src)
Invalidated assignment operator.
void parseOpeningHour(const SUMOSAXAttributes &attrs)
void parseStreets(const SUMOSAXAttributes &attrs)