SUMO - Simulation of Urban MObility
AGBus.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4
// activitygen module
5
// Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6
/****************************************************************************/
7
//
8
// This program and the accompanying materials
9
// are made available under the terms of the Eclipse Public License v2.0
10
// which accompanies this distribution, and is available at
11
// http://www.eclipse.org/legal/epl-v20.html
12
//
13
/****************************************************************************/
21
// A bus driving in the city
22
/****************************************************************************/
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <iostream>
35
#include <string>
36
#include "
AGBus.h
"
37
38
39
// ===========================================================================
40
// method definitions
41
// ===========================================================================
42
void
AGBus::setName
(std::string name) {
43
this->name =
name
;
44
}
45
46
int
47
AGBus::getDeparture
() {
48
return
departureTime
;
49
}
50
51
std::string
52
AGBus::getName
() {
53
return
name
;
54
}
55
56
void
57
AGBus::print
()
const
{
58
std::cout <<
"- Bus:"
<<
" name="
<<
name
<<
" depTime="
<<
departureTime
<< std::endl;
59
}
60
61
/****************************************************************************/
AGBus::getDeparture
int getDeparture()
Definition:
AGBus.cpp:47
windows_config.h
AGBus::departureTime
int departureTime
Definition:
AGBus.h:56
AGBus::name
std::string name
Definition:
AGBus.h:55
config.h
AGBus::setName
void setName(std::string name)
Definition:
AGBus.cpp:42
AGBus::print
void print() const
Definition:
AGBus.cpp:57
AGBus.h
AGBus::getName
std::string getName()
Definition:
AGBus.cpp:52
src
activitygen
city
AGBus.cpp
Generated on Fri May 25 2018 08:54:34 for SUMO - Simulation of Urban MObility by
1.8.13