SUMO - Simulation of Urban MObility
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.dlr.de/
12
// Copyright (C) 2001-2017 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
()
const
;
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
/****************************************************************************/
AGSchool::capacity
int capacity
Definition:
AGSchool.h:67
AGSchool::print
void print() const
Definition:
AGSchool.cpp:45
AGSchool::endAge
int endAge
Definition:
AGSchool.h:66
windows_config.h
AGPosition
A location in the 2D plane freely positioned on a street.
Definition:
AGPosition.h:63
AGSchool::addNewChild
bool addNewChild()
Definition:
AGSchool.cpp:55
AGSchool::closing
int closing
Definition:
AGSchool.h:70
config.h
AGSchool::AGSchool
AGSchool(int capacity_, AGPosition pos, int beginAge, int endAge, int open, int close)
Definition:
AGSchool.h:46
AGSchool::getPosition
AGPosition getPosition()
Definition:
AGSchool.cpp:91
AGSchool::opening
int opening
Definition:
AGSchool.h:70
AGPosition.h
AGSchool::acceptThisAge
bool acceptThisAge(int age)
Definition:
AGSchool.cpp:73
AGSchool::location
AGPosition location
Definition:
AGSchool.h:69
AGSchool::getEndAge
int getEndAge()
Definition:
AGSchool.cpp:86
AGSchool::removeChild
bool removeChild()
Definition:
AGSchool.cpp:64
AGSchool::getOpeningHour
int getOpeningHour()
Definition:
AGSchool.cpp:101
AGSchool::getBeginAge
int getBeginAge()
Definition:
AGSchool.cpp:81
AGSchool::getClosingHour
int getClosingHour()
Definition:
AGSchool.cpp:96
AGSchool
Definition:
AGSchool.h:44
AGSchool::getPlaces
int getPlaces()
Definition:
AGSchool.cpp:50
AGSchool::initCapacity
int initCapacity
Definition:
AGSchool.h:68
AGSchool::beginAge
int beginAge
Definition:
AGSchool.h:66
src
activitygen
city
AGSchool.h
Generated on Sun Jul 23 2017 14:19:12 for SUMO - Simulation of Urban MObility by
1.8.13