SUMO - Simulation of Urban MObility
AGBus.cpp
Go to the documentation of this file.
1
/****************************************************************************/
9
// A bus driving in the city
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12
// Copyright (C) 2001-2017 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
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <iostream>
36
#include <string>
37
#include "
AGBus.h
"
38
39
40
// ===========================================================================
41
// method definitions
42
// ===========================================================================
43
void
AGBus::setName
(std::string name) {
44
this->name =
name
;
45
}
46
47
int
48
AGBus::getDeparture
() {
49
return
departureTime
;
50
}
51
52
std::string
53
AGBus::getName
() {
54
return
name
;
55
}
56
57
void
58
AGBus::print
()
const
{
59
std::cout <<
"- Bus:"
<<
" name="
<<
name
<<
" depTime="
<<
departureTime
<< std::endl;
60
}
61
62
/****************************************************************************/
AGBus::getDeparture
int getDeparture()
Definition:
AGBus.cpp:48
windows_config.h
AGBus::departureTime
int departureTime
Definition:
AGBus.h:57
AGBus::name
std::string name
Definition:
AGBus.h:56
config.h
AGBus::setName
void setName(std::string name)
Definition:
AGBus.cpp:43
AGBus::print
void print() const
Definition:
AGBus.cpp:58
AGBus.h
AGBus::getName
std::string getName()
Definition:
AGBus.cpp:53
src
activitygen
city
AGBus.cpp
Generated on Sun Jul 23 2017 14:19:12 for SUMO - Simulation of Urban MObility by
1.8.13