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