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
AGActivities.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Main class that manages activities taken in account and generates the
10
// inhabitants' trip list.
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
13
// Copyright (C) 2001-2012 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 AGACTIVITIES_H
26
#define AGACTIVITIES_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 <list>
39
#include "
AGTrip.h
"
40
#include "../city/AGCity.h"
41
#include "../city/AGBusLine.h"
42
#include "../city/AGHousehold.h"
43
44
45
// ===========================================================================
46
// class definitions
47
// ===========================================================================
48
class
AGActivities
{
49
public
:
50
AGActivities
(
AGCity
* city,
int
days) :
51
myCity
(city),
52
nbrDays
(days) {};
53
void
addTrip
(
AGTrip
t, std::list<AGTrip> *tripSet);
54
void
addTrips
(std::list<AGTrip> t, std::list<AGTrip> *tripSet);
55
void
generateActivityTrips
();
56
63
std::list<AGTrip>
trips
;
64
65
private
:
66
bool
generateTrips
(
AGHousehold
& hh);
67
bool
generateBusTraffic
(
AGBusLine
bl);
68
bool
generateInOutTraffic
();
69
bool
generateRandomTraffic
();
70
74
std::string
generateName
(
int
i, std::string prefix);
75
76
AGCity
*
myCity
;
77
78
int
nbrDays
;
79
80
};
81
82
#endif
83
84
/****************************************************************************/
build
buildd
sumo-0.15.0~dfsg
src
activitygen
activities
AGActivities.h
Generated on Wed Jul 18 2012 22:58:31 for SUMO - Simulation of Urban MObility by
1.8.1.1