SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // Person in age to go to school: linked to a school object 00010 /****************************************************************************/ 00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00013 // activitygen module 00014 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/) 00015 /****************************************************************************/ 00016 // 00017 // This file is part of SUMO. 00018 // SUMO is free software: you can redistribute it and/or modify 00019 // it under the terms of the GNU General Public License as published by 00020 // the Free Software Foundation, either version 3 of the License, or 00021 // (at your option) any later version. 00022 // 00023 /****************************************************************************/ 00024 #ifndef AGCHILD_H 00025 #define AGCHILD_H 00026 00027 00028 // =========================================================================== 00029 // included modules 00030 // =========================================================================== 00031 #ifdef _MSC_VER 00032 #include <windows_config.h> 00033 #else 00034 #include <config.h> 00035 #endif 00036 00037 #include <iostream> 00038 #include <vector> 00039 #include "AGPerson.h" 00040 #include "AGPosition.h" 00041 #include "AGSchool.h" 00042 00043 00044 // =========================================================================== 00045 // class definitions 00046 // =========================================================================== 00047 class AGChild : public AGPerson { 00048 public: 00049 AGChild(int age) : 00050 AGPerson(age), 00051 school(NULL) {}; 00052 void print(); 00053 bool setSchool(AGSchool* school); 00059 bool alocateASchool(std::list<AGSchool> *schools, AGPosition housePos); 00063 bool leaveSchool(); 00064 bool haveASchool(); 00065 AGPosition getSchoolLocation(); 00066 int getSchoolOpeining(); 00067 int getSchoolClosing(); 00068 00069 private: 00070 AGSchool* school; 00071 }; 00072 00073 #endif 00074 00075 /****************************************************************************/