/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// activitygen module4// Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)5// This program and the accompanying materials are made available under the6// terms of the Eclipse Public License 2.0 which is available at7// https://www.eclipse.org/legal/epl-2.0/8// This Source Code may also be made available under the following Secondary9// Licenses when the conditions for such availability set forth in the Eclipse10// Public License 2.0 are satisfied: GNU General Public License, version 211// or later which is available at12// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html13// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later14/****************************************************************************/15/// @file AGSchool.h16/// @author Piotr Woznica17/// @author Daniel Krajzewicz18/// @author Walter Bamberger19/// @date July 201020///21// Correspond to given ages and referenced by children. Has a precise location.22/****************************************************************************/23#pragma once24#include <config.h>2526#include <iostream>27#include "AGPosition.h"282930// ===========================================================================31// class definitions32// ===========================================================================33class AGSchool {34public:35AGSchool(int capacity_, AGPosition pos, int beginAge, int endAge, int open, int close) :36beginAge(beginAge),37endAge(endAge),38capacity(capacity_),39initCapacity(capacity_),40location(pos),41opening(open),42closing(close) {};43void print() const;44int getPlaces();45bool addNewChild();46bool removeChild();47int getBeginAge();48int getEndAge();49bool acceptThisAge(int age);50AGPosition getPosition();51int getClosingHour();52int getOpeningHour();5354private:55int beginAge, endAge;56int capacity;57int initCapacity;58AGPosition location;59int opening, closing;60};616263