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
/****************************************************************************/
9
// Main class that handles City, Activities and Trips
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
13
// activitygen module
14
// Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
15
/****************************************************************************/
16
//
17
// This file is part of SUMO.
18
// SUMO is free software: you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation, either version 3 of the License, or
21
// (at your option) any later version.
22
//
23
/****************************************************************************/
24
#ifndef AGACTIVITYGEN_H
25
#define AGACTIVITYGEN_H
26
27
28
// ===========================================================================
29
// included modules
30
// ===========================================================================
31
#include <iostream>
32
#include <list>
33
#include <string>
34
#include <
router/RONet.h
>
35
#include "
city/AGCity.h
"
36
#include "
activities/AGTrip.h
"
37
#include "
activities/AGActivities.h
"
38
#include "
city/AGStreet.h
"
39
#include "
city/AGPosition.h
"
40
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
49
class
AGActivityGen
{
50
public
:
51
//AGActivityGen() {};
58
AGActivityGen
(std::string input, std::string output,
RONet
*
net
) :
59
inputFile
(input),
60
outputFile
(output),
61
net(net),
62
//activities(),
63
city
(net) {};
69
void
importInfoCity
();
70
84
void
makeActivityTrips
(
int
days = 1,
int
beginTime
= 0,
int
endTime
= 0);
85
86
protected
:
87
// @brief xml files: statistics on the city and generated routes
88
std::string
inputFile
,
outputFile
;
89
//Activities activities;
90
// @brief city object containing all households and vehicles
91
AGCity
city
;
92
// @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)
93
int
durationInDays
,
beginTime
,
endTime
;
94
// @brief network of the city
95
RONet
*
net
;
96
105
bool
timeTripValidation
(
AGTrip
);
111
void
generateOutputFile
(std::list<AGTrip>& trips);
117
void
varDepTime
(
AGTrip
& trip);
118
};
119
120
#endif
121
122
/****************************************************************************/
123
build
buildd
sumo-0.15.0~dfsg
src
activitygen
AGActivityGen.h
Generated on Wed Jul 18 2012 22:58:31 for SUMO - Simulation of Urban MObility by
1.8.1.1