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
AGActivity.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Parent object for all activities. Derived classes generate trips for each
10
// household.
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 AGACTIVITY_H
26
#define AGACTIVITY_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 "
AGTrip.h
"
39
#include "../city/AGHousehold.h"
40
#include "../city/AGDataAndStatistics.h"
41
42
43
// ===========================================================================
44
// class definitions
45
// ===========================================================================
46
class
AGActivity
{
47
public
:
48
AGActivity
(
AGHousehold
*
hh
,
AGDataAndStatistics
* das, std::list<AGTrip>* prevTrips,
int
prio) :
49
hh(hh),
50
ds
(das),
51
activityPriority
(prio),
52
genDone
(false),
53
timePerKm
(das->speedTimePerKm),
54
previousTrips
(prevTrips),
55
carPreference
(das->
carPreference
) {};
56
60
bool
isGenerated
();
61
67
bool
generateTrips
();
68
77
int
possibleTranspMean
(
AGPosition
destination);
78
88
int
availableTranspMeans
(
AGPosition
from,
AGPosition
to);
89
93
int
timeToDrive
(
AGPosition
from,
AGPosition
to);
94
99
int
depHour
(
AGPosition
from,
AGPosition
to,
int
arrival);
100
int
arrHour
(
AGPosition
from,
AGPosition
to,
int
departure);
101
105
int
randomTimeBetween
(
int
begin,
int
end);
106
107
108
std::list<AGTrip>
partialActivityTrips
;
109
std::list<AGTrip> *
previousTrips
;
110
bool
genDone
;
111
int
activityPriority
;
112
SUMOReal
timePerKm
;
116
SUMOReal
carPreference
;
117
118
AGHousehold
*
hh
;
119
120
AGDataAndStatistics
*
ds
;
121
122
};
123
124
#endif
125
126
/****************************************************************************/
build
buildd
sumo-0.15.0~dfsg
src
activitygen
activities
AGActivity.h
Generated on Wed Jul 18 2012 22:58:31 for SUMO - Simulation of Urban MObility by
1.8.1.1