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
AGFreeTime.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Generates trips related to after-work activities
10
// like visiting the family or party.
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 AGFREETIME_H
26
#define AGFREETIME_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 "../city/AGHousehold.h"
39
#include "
AGActivity.h
"
40
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
45
class
AGFreeTime
:
public
AGActivity
{
46
public
:
47
AGFreeTime
(
AGHousehold
* hh,
AGDataAndStatistics
* das, std::list<AGTrip>* prevTrips) :
48
AGActivity
(hh, das, prevTrips, 2),
49
freqOut
(das->freeTimeActivityRate),
50
nbrDays
(1) {};
51
AGFreeTime
(
AGHousehold
* hh,
AGDataAndStatistics
* das, std::list<AGTrip>* prevTrips,
int
days) :
52
AGActivity
(hh, das, prevTrips, 2),
53
freqOut
(das->freeTimeActivityRate),
54
nbrDays
(days) {};
55
59
bool
generateTrips
();
60
70
int
possibleTypeOfTrip
();
71
int
decideTypeOfTrip
();
76
bool
typeFromHomeDay
(
int
day);
77
bool
typeFromHomeEvening
(
int
day);
78
bool
typeFromHomeNight
(
int
day);
79
84
int
whenBackHome
();
89
int
whenBackHomeThisDay
(
int
day);
94
int
whenBeginActivityNextDay
(
int
day);
95
96
private
:
100
SUMOReal
freqOut
;
105
int
nbrDays
;
110
int
tReady
;
114
int
possibleType
;
115
116
static
const
int
DAY
;
// = 1;
117
static
const
int
EVENING
;
// = 2;
118
static
const
int
NIGHT
;
// = 4;
119
120
static
const
int
TB_DAY
;
// = 800;
121
static
const
int
TE_DAY
;
// = 1800;
122
static
const
int
TB_EVENING
;
// = 1900;
123
static
const
int
TE_EVENING
;
// = 2400;
124
static
const
int
TB_NIGHT
;
// = 2300;
125
static
const
int
TE_NIGHT
;
// = 500;
126
127
};
128
129
#endif
130
131
/****************************************************************************/
build
buildd
sumo-0.16.0~dfsg
src
activitygen
activities
AGFreeTime.h
Generated on Tue Apr 16 2013 01:32:15 for SUMO - Simulation of Urban MObility by
1.8.3.1