SUMO - Simulation of Urban MObility

AGChild.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Person in age to go to school: linked to a school object
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 AGCHILD_H
00022 #define AGCHILD_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 <vector>
00036 #include "AGPerson.h"
00037 #include "AGPosition.h"
00038 #include "AGSchool.h"
00039 
00040 
00041 // ===========================================================================
00042 // class definitions
00043 // ===========================================================================
00044 class AGChild : public AGPerson {
00045 public:
00046     AGChild(int age) :
00047         AGPerson(age),
00048         school(NULL) {};
00049     void print();
00050     bool setSchool(AGSchool* school);
00056     bool alocateASchool(std::list<AGSchool> *schools, AGPosition housePos);
00060     bool leaveSchool();
00061     bool haveASchool();
00062     AGPosition getSchoolLocation();
00063     int getSchoolOpeining();
00064     int getSchoolClosing();
00065 
00066 private:
00067     AGSchool* school;
00068 };
00069 
00070 #endif
00071 
00072 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines