SUMO - Simulation of Urban MObility

AGSchool.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Correspond to given ages and referenced by children. Has a precise location.
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors
00011 // activitygen module
00012 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
00013 /****************************************************************************/
00014 //
00015 //   This program is free software; you can redistribute it and/or modify
00016 //   it under the terms of the GNU General Public License as published by
00017 //   the Free Software Foundation; either version 2 of the License, or
00018 //   (at your option) any later version.
00019 //
00020 /****************************************************************************/
00021 #ifndef AGSCHOOL_H
00022 #define AGSCHOOL_H
00023 
00024 
00025 // ===========================================================================
00026 // included modules
00027 // ===========================================================================
00028 #ifdef _MSC_VER
00029 #include <windows_config.h>
00030 #else
00031 #include <config.h>
00032 #endif
00033 
00034 #include <iostream>
00035 #include "AGPosition.h"
00036 
00037 
00038 // ===========================================================================
00039 // class definitions
00040 // ===========================================================================
00041 class AGSchool {
00042 public:
00043     AGSchool(int capacity_, AGPosition pos, int beginAge, int endAge, int open, int close) :
00044         beginAge(beginAge),
00045         endAge(endAge),
00046         capacity(capacity_),
00047         initCapacity(capacity_),
00048         location(pos),
00049         opening(open),
00050         closing(close) {};
00051     void print();
00052     int getPlaces();
00053     bool addNewChild();
00054     bool removeChild();
00055     int getBeginAge();
00056     int getEndAge();
00057     bool acceptThisAge(int age);
00058     AGPosition getPosition();
00059     int getClosingHour();
00060     int getOpeningHour();
00061 
00062 private:
00063     int beginAge, endAge;
00064     int capacity;
00065     int initCapacity;
00066     AGPosition location;
00067     int opening, closing;
00068 };
00069 
00070 #endif
00071 
00072 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines