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