Eclipse SUMO - Simulation of Urban MObility
AGSchool.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// activitygen module
5
// Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6
// This program and the accompanying materials
7
// are made available under the terms of the Eclipse Public License v2.0
8
// which accompanies this distribution, and is available at
9
// http://www.eclipse.org/legal/epl-v20.html
10
// SPDX-License-Identifier: EPL-2.0
11
/****************************************************************************/
18
// Correspond to given ages and referenced by children. Has a precise location.
19
/****************************************************************************/
20
#ifndef AGSCHOOL_H
21
#define AGSCHOOL_H
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#include <
config.h
>
28
29
#include <iostream>
30
#include "
AGPosition.h
"
31
32
33
// ===========================================================================
34
// class definitions
35
// ===========================================================================
36
class
AGSchool
{
37
public
:
38
AGSchool
(
int
capacity_,
AGPosition
pos,
int
beginAge
,
int
endAge
,
int
open,
int
close) :
39
beginAge
(
beginAge
),
40
endAge
(
endAge
),
41
capacity
(capacity_),
42
initCapacity
(capacity_),
43
location
(pos),
44
opening
(open),
45
closing
(close) {};
46
void
print
()
const
;
47
int
getPlaces
();
48
bool
addNewChild
();
49
bool
removeChild
();
50
int
getBeginAge
();
51
int
getEndAge
();
52
bool
acceptThisAge
(
int
age);
53
AGPosition
getPosition
();
54
int
getClosingHour
();
55
int
getOpeningHour
();
56
57
private
:
58
int
beginAge
,
endAge
;
59
int
capacity
;
60
int
initCapacity
;
61
AGPosition
location
;
62
int
opening
,
closing
;
63
};
64
65
#endif
66
67
/****************************************************************************/
AGSchool::beginAge
int beginAge
Definition:
AGSchool.h:58
AGSchool::addNewChild
bool addNewChild()
Definition:
AGSchool.cpp:47
AGSchool::initCapacity
int initCapacity
Definition:
AGSchool.h:60
AGSchool::print
void print() const
Definition:
AGSchool.cpp:37
AGSchool::endAge
int endAge
Definition:
AGSchool.h:58
AGSchool::capacity
int capacity
Definition:
AGSchool.h:59
AGSchool
Definition:
AGSchool.h:36
AGSchool::getPosition
AGPosition getPosition()
Definition:
AGSchool.cpp:83
AGSchool::opening
int opening
Definition:
AGSchool.h:62
AGSchool::location
AGPosition location
Definition:
AGSchool.h:61
AGSchool::acceptThisAge
bool acceptThisAge(int age)
Definition:
AGSchool.cpp:65
AGSchool::removeChild
bool removeChild()
Definition:
AGSchool.cpp:56
AGSchool::closing
int closing
Definition:
AGSchool.h:62
AGSchool::getEndAge
int getEndAge()
Definition:
AGSchool.cpp:78
AGSchool::AGSchool
AGSchool(int capacity_, AGPosition pos, int beginAge, int endAge, int open, int close)
Definition:
AGSchool.h:38
AGSchool::getBeginAge
int getBeginAge()
Definition:
AGSchool.cpp:73
AGSchool::getOpeningHour
int getOpeningHour()
Definition:
AGSchool.cpp:93
AGPosition.h
AGPosition
A location in the 2D plane freely positioned on a street.
Definition:
AGPosition.h:55
AGSchool::getClosingHour
int getClosingHour()
Definition:
AGSchool.cpp:88
config.h
AGSchool::getPlaces
int getPlaces()
Definition:
AGSchool.cpp:42
src
activitygen
city
AGSchool.h
Generated on Thu Jan 16 2020 21:12:23 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16