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
AGAdult.h
Go to the documentation of this file.
1
/****************************************************************************/
10
// Person in working age: can be linked to a work position.
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13
// Copyright (C) 2010-2014 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 AGADULT_H
26
#define AGADULT_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 <vector>
39
#include <stdexcept>
40
#include "
AGPerson.h
"
41
42
43
// ===========================================================================
44
// class declarations
45
// ===========================================================================
46
class
AGWorkPosition
;
47
48
49
// ===========================================================================
50
// class definitions
51
// ===========================================================================
58
class
AGAdult
:
public
AGPerson
{
59
public
:
64
AGAdult
(
int
age
);
65
68
void
print
()
const
;
69
74
bool
isWorking
()
const
;
75
88
void
tryToWork
(
SUMOReal
employmentRate, std::vector<AGWorkPosition>* wps);
89
96
void
lostWorkPosition
();
97
103
void
resignFromWorkPosition
();
104
113
const
AGWorkPosition
&
getWorkPosition
()
const
;
114
115
private
:
120
AGWorkPosition
*
work
;
121
127
static
AGWorkPosition
*
randomFreeWorkPosition
(std::vector<AGWorkPosition>* wps);
128
};
129
130
#endif
/* AGADULT_H */
131
132
/****************************************************************************/
tmp
buildd
sumo-0.21.0+dfsg
src
activitygen
city
AGAdult.h
Generated on Thu Nov 20 2014 19:49:52 for SUMO - Simulation of Urban MObility by
1.8.1.2