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-sim.org/
12
// Copyright (C) 2001-2013 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,
OutputDevice
& 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 file statistics on the city and generated routes
88
std::string
inputFile
;
90
OutputDevice
&
outputFile
;
91
// @brief network of the city
92
RONet
*
net
;
93
//Activities activities;
94
// @brief city object containing all households and vehicles
95
AGCity
city
;
96
// @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)
97
int
durationInDays
,
beginTime
,
endTime
;
98
107
bool
timeTripValidation
(
AGTrip
);
113
void
generateOutputFile
(std::list<AGTrip>& trips);
119
void
varDepTime
(
AGTrip
& trip);
120
121
private
:
123
AGActivityGen
&
operator=
(
const
AGActivityGen
&);
124
};
125
126
#endif
127
128
/****************************************************************************/
129
home
delphi
sumo
src
activitygen
AGActivityGen.h
Generated by
1.8.2