SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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-2014 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>
39
#include <
utils/xml/SUMOSAXHandler.h
>
40
#include <
utils/common/UtilExceptions.h
>
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
// ===========================================================================
54
class
AGActivityGenHandler
:
public
SUMOSAXHandler
{
55
public
:
60
AGActivityGenHandler
(
AGCity
& city,
RONet
*
net
);
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
:
151
AGCity
&
myCity
;
152
154
std::string
myCurrentObject
;
155
AGBusLine
*
currentBusLine
;
156
158
bool
isRevStation
;
159
161
RONet
*
net
;
162
164
bool
myProcess
;
165
166
167
private
:
169
AGActivityGenHandler
(
const
AGActivityGenHandler
& src);
170
172
AGActivityGenHandler
&
operator=
(
const
AGActivityGenHandler
& src);
173
174
};
175
176
177
#endif
178
179
/****************************************************************************/
180
tmp
buildd
sumo-0.21.0+dfsg
src
activitygen
AGActivityGenHandler.h
Generated on Thu Nov 20 2014 19:49:52 for SUMO - Simulation of Urban MObility by
1.8.1.2