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
AGSchool.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Correspond to given ages and referenced by children. Has a precise location.
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 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 AGSCHOOL_H
25
#define AGSCHOOL_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 <iostream>
38
#include "
AGPosition.h
"
39
40
41
// ===========================================================================
42
// class definitions
43
// ===========================================================================
44
class
AGSchool
{
45
public
:
46
AGSchool
(
int
capacity_,
AGPosition
pos,
int
beginAge
,
int
endAge
,
int
open,
int
close) :
47
beginAge(beginAge),
48
endAge(endAge),
49
capacity
(capacity_),
50
initCapacity
(capacity_),
51
location
(pos),
52
opening
(open),
53
closing
(close) {};
54
void
print
();
55
int
getPlaces
();
56
bool
addNewChild
();
57
bool
removeChild
();
58
int
getBeginAge
();
59
int
getEndAge
();
60
bool
acceptThisAge
(
int
age);
61
AGPosition
getPosition
();
62
int
getClosingHour
();
63
int
getOpeningHour
();
64
65
private
:
66
int
beginAge
,
endAge
;
67
int
capacity
;
68
int
initCapacity
;
69
AGPosition
location
;
70
int
opening
,
closing
;
71
};
72
73
#endif
74
75
/****************************************************************************/
tmp
buildd
sumo-0.15.0~dfsg
src
activitygen
city
AGSchool.h
Generated on Sun May 27 2012 14:52:03 for SUMO - Simulation of Urban MObility by
1.8.1