SUMO - Simulation of Urban MObility

AGPerson.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Parent object of every person, contains age and any natural characteristic
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 AGPERSON_H
00022 #define AGPERSON_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 
00035 // ===========================================================================
00036 // class definitions
00037 // ===========================================================================
00046 class AGPerson {
00047 public:
00052     virtual int getAge() const throw();
00053 
00062     virtual bool decide(SUMOReal probability) const throw();
00063 
00066     virtual void print() const throw();
00067 
00068 protected:
00069     int age;
00070 
00075     AGPerson(int age) throw();
00076 
00079     virtual ~AGPerson() throw();
00080 };
00081 
00082 #endif /* AGPerson */
00083 
00084 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines