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
AGActivityGen.h
Go to the documentation of this file.
1
/****************************************************************************/
10
// Main class that handles City, Activities and Trips
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13
// Copyright (C) 2010-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 AGACTIVITYGEN_H
26
#define AGACTIVITYGEN_H
27
28
29
// ===========================================================================
30
// included modules
31
// ===========================================================================
32
#include <iostream>
33
#include <list>
34
#include <string>
35
#include <
router/RONet.h
>
36
#include "
city/AGCity.h
"
37
#include "
activities/AGTrip.h
"
38
#include "
activities/AGActivities.h
"
39
#include "
city/AGStreet.h
"
40
#include "
city/AGPosition.h
"
41
42
43
// ===========================================================================
44
// class definitions
45
// ===========================================================================
50
class
AGActivityGen
{
51
public
:
52
//AGActivityGen() {};
59
AGActivityGen
(std::string input,
OutputDevice
& output,
RONet
*
net
) :
60
inputFile
(input),
61
outputFile
(output),
62
net(net),
63
//activities(),
64
city
(net) {};
70
void
importInfoCity
();
71
85
void
makeActivityTrips
(
int
days = 1,
int
beginTime
= 0,
int
endTime
= 0);
86
87
protected
:
88
// @brief xml file statistics on the city and generated routes
89
std::string
inputFile
;
91
OutputDevice
&
outputFile
;
92
// @brief network of the city
93
RONet
*
net
;
94
//Activities activities;
95
// @brief city object containing all households and vehicles
96
AGCity
city
;
97
// @brief time of beginning and ending of the simulation and the duration of the simulation in days (min 1 day (beginning and end in the same day)
98
int
durationInDays
,
beginTime
,
endTime
;
99
108
bool
timeTripValidation
(
AGTrip
);
114
void
generateOutputFile
(std::list<AGTrip>& trips);
120
void
varDepTime
(
AGTrip
& trip);
121
122
private
:
124
AGActivityGen
&
operator=
(
const
AGActivityGen
&);
125
};
126
127
#endif
128
129
/****************************************************************************/
130
tmp
buildd
sumo-0.21.0+dfsg
src
activitygen
AGActivityGen.h
Generated on Thu Nov 20 2014 19:49:52 for SUMO - Simulation of Urban MObility by
1.8.1.2