Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AGActivityGenHandler.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 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 are made available under the
7// terms of the Eclipse Public License 2.0 which is available at
8// https://www.eclipse.org/legal/epl-2.0/
9// This Source Code may also be made available under the following Secondary
10// Licenses when the conditions for such availability set forth in the Eclipse
11// Public License 2.0 are satisfied: GNU General Public License, version 2
12// or later which is available at
13// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
14// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
15/****************************************************************************/
23// The handler for parsing the statistics file.
24/****************************************************************************/
25#pragma once
26#include <config.h>
27
28#include <string>
31#include "city/AGCity.h"
32#include "city/AGBusLine.h"
33
34
35// ===========================================================================
36// class declarations
37// ===========================================================================
38class RONet;
39
40
41// ===========================================================================
42// class definitions
43// ===========================================================================
45public:
51
52
54 virtual ~AGActivityGenHandler();
55
56
57protected:
59
60
68 virtual void myStartElement(int element,
69 const SUMOSAXAttributes& attrs);
71
72protected:
74
75
79 void parseGeneralCityInfo(const SUMOSAXAttributes& attrs);
80 /*void parseInhabitants(const SUMOSAXAttributes &attrs);
81 void parseHouseholds(const SUMOSAXAttributes &attrs);
82 void parseChildrenAgeLimit(const SUMOSAXAttributes &attrs);
83 void parseRetirementAgeLimit(const SUMOSAXAttributes &attrs);
84 void parseCarRate(const SUMOSAXAttributes &attrs);
85 void parseUnemployment(const SUMOSAXAttributes &attrs);
86 void parseFootDistanceLimit(const SUMOSAXAttributes &attrs);
87 void parseIncomingTraffic(const SUMOSAXAttributes &attrs);
88 void parseOutgoingTraffic(const SUMOSAXAttributes &attrs);*/
89
93 void parseParameters(const SUMOSAXAttributes& attrs);
94
99 void parseStreets(const SUMOSAXAttributes& attrs);
100
104 void parseCityGates(const SUMOSAXAttributes& attrs);
105
109 void parseWorkHours();
110 void parseOpeningHour(const SUMOSAXAttributes& attrs);
111 void parseClosingHour(const SUMOSAXAttributes& attrs);
112
116 void parseSchools();
117 void parseSchool(const SUMOSAXAttributes& attrs);
118
123 void parseBusStation(const SUMOSAXAttributes& attrs);
124 void parseBusLine(const SUMOSAXAttributes& attrs);
125 void parseStations();
126 void parseRevStations();
127 void parseStation(const SUMOSAXAttributes& attrs);
128 void parseFrequency(const SUMOSAXAttributes& attrs);
129
134 void parsePopulation();
135 //void parseChildrenAccompaniment();
136 void parseBracket(const SUMOSAXAttributes& attrs);
137
138
139protected:
142
144 std::string myCurrentObject;
146
149
152
155
156
157private:
160
163
164};
void parseBusStation(const SUMOSAXAttributes &attrs)
bool isRevStation
indicator whether the current station (in bus line context) is a reverse station or not.
void parseBracket(const SUMOSAXAttributes &attrs)
void parseBusLine(const SUMOSAXAttributes &attrs)
void parseCityGates(const SUMOSAXAttributes &attrs)
void parseSchool(const SUMOSAXAttributes &attrs)
AGActivityGenHandler(const AGActivityGenHandler &src)
Invalidated copy constructor.
void parseClosingHour(const SUMOSAXAttributes &attrs)
void parseOpeningHour(const SUMOSAXAttributes &attrs)
void parseParameters(const SUMOSAXAttributes &attrs)
AGCity & myCity
The city to store the information into.
std::string myCurrentObject
The name of the object that is currently processed.
RONet * net
The loaded network.
void parseFrequency(const SUMOSAXAttributes &attrs)
AGActivityGenHandler & operator=(const AGActivityGenHandler &src)
Invalidated assignment operator.
bool myProcess
An indicator whether the next edge shall be read (internal edges are not read by now)
void parseGeneralCityInfo(const SUMOSAXAttributes &attrs)
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
void parseStreets(const SUMOSAXAttributes &attrs)
void parseStation(const SUMOSAXAttributes &attrs)
virtual ~AGActivityGenHandler()
Destructor.
The router's network representation.
Definition RONet.h:63
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.