SUMO - Simulation of Urban MObility
AGPerson.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // Parent object of every person, contains age and any natural characteristic
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 AGPERSON_H
00025 #define AGPERSON_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 
00038 // ===========================================================================
00039 // class definitions
00040 // ===========================================================================
00049 class AGPerson {
00050 public:
00055     virtual int getAge() const ;
00056 
00065     virtual bool decide(SUMOReal probability) const ;
00066 
00069     virtual void print() const ;
00070 
00071 protected:
00072     int age;
00073 
00078     AGPerson(int age) ;
00079 
00082     virtual ~AGPerson() ;
00083 };
00084 
00085 #endif /* AGPerson */
00086 
00087 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines