SUMO - Simulation of Urban MObility

AGCar.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Cars owned by people of the city: included in households.
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 AGCAR_H
00022 #define AGCAR_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 <string>
00036 #include "AGAdult.h"
00037 
00038 
00039 // ===========================================================================
00040 // class definitions
00041 // ===========================================================================
00042 class AGCar {
00043 public:
00044     AGCar(std::string name) :
00045         idName(name) {};
00046     AGCar(int idHH, int idCar) :
00047         idName(createName(idHH, idCar)) {};
00048     bool associateTo(AGAdult* pers);
00049     bool isAssociated();
00050     std::string getName();
00051 
00052 private:
00053     std::string createName(int idHH, int idCar);
00054 
00055     std::string idName;
00056     AGAdult* currentUser;
00057 
00058 };
00059 
00060 #endif
00061 
00062 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines