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
/****************************************************************************/
9
// Person in working age: can be linked to a work position.
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 AGADULT_H
25
#define AGADULT_H
26
27
28
// ===========================================================================
29
// included modules
30
// ===========================================================================
31
#ifdef _MSC_VER
32
#include <
windows_config.h
>
33
#else
34
#include <
config.h
>
35
#endif
36
37
#include <vector>
38
#include <stdexcept>
39
#include "
AGPerson.h
"
40
41
42
// ===========================================================================
43
// class declarations
44
// ===========================================================================
45
class
AGWorkPosition
;
46
47
48
// ===========================================================================
49
// class definitions
50
// ===========================================================================
57
class
AGAdult
:
public
AGPerson
{
58
public
:
63
AGAdult
(
int
age
);
64
67
void
print
()
const
;
68
73
bool
isWorking
()
const
;
74
87
void
tryToWork
(
SUMOReal
employmentRate, std::vector<AGWorkPosition>* wps);
88
95
void
lostWorkPosition
();
96
102
void
resignFromWorkPosition
();
103
112
const
AGWorkPosition
&
getWorkPosition
()
const
;
113
114
private
:
119
AGWorkPosition
*
work
;
120
126
static
AGWorkPosition
*
randomFreeWorkPosition
(std::vector<AGWorkPosition>* wps);
127
};
128
129
#endif
/* AGADULT_H */
130
131
/****************************************************************************/
build
buildd
sumo-0.18~dfsg
src
activitygen
city
AGAdult.h
Generated on Wed Oct 23 2013 01:15:07 for SUMO - Simulation of Urban MObility by
1.8.4