SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AGCar.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // Cars owned by people of the city: included in households.
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13 // Copyright (C) 2010-2014 DLR (http://www.dlr.de/) and contributors
14 // activitygen module
15 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
16 /****************************************************************************/
17 //
18 // This file is part of SUMO.
19 // SUMO is free software: you can redistribute it and/or modify
20 // it under the terms of the GNU General Public License as published by
21 // the Free Software Foundation, either version 3 of the License, or
22 // (at your option) any later version.
23 //
24 /****************************************************************************/
25 #ifndef AGCAR_H
26 #define AGCAR_H
27 
28 
29 // ===========================================================================
30 // included modules
31 // ===========================================================================
32 #ifdef _MSC_VER
33 #include <windows_config.h>
34 #else
35 #include <config.h>
36 #endif
37 
38 #include <iostream>
39 #include <string>
40 #include "AGAdult.h"
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
46 class AGCar {
47 public:
48  AGCar(std::string name) :
49  idName(name) {};
50  AGCar(int idHH, int idCar) :
51  idName(createName(idHH, idCar)) {};
52  bool associateTo(AGAdult* pers);
53  bool isAssociated() const;
54  std::string getName() const;
55 
56 private:
57  std::string createName(int idHH, int idCar);
58 
59  std::string idName;
61 
62 };
63 
64 #endif
65 
66 /****************************************************************************/