Eclipse 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-2019 German Aerospace Center (DLR) and others.
4
// activitygen module
5
// Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6
// This program and the accompanying materials
7
// are made available under the terms of the Eclipse Public License v2.0
8
// which accompanies this distribution, and is available at
9
// http://www.eclipse.org/legal/epl-v20.html
10
// SPDX-License-Identifier: EPL-2.0
11
/****************************************************************************/
19
// A bus driving in the city
20
/****************************************************************************/
21
22
23
// ===========================================================================
24
// included modules
25
// ===========================================================================
26
#include <
config.h
>
27
28
#include <iostream>
29
#include <string>
30
#include "
AGBus.h
"
31
32
33
// ===========================================================================
34
// method definitions
35
// ===========================================================================
36
void
AGBus::setName
(std::string name) {
37
this->name =
name
;
38
}
39
40
int
41
AGBus::getDeparture
() {
42
return
departureTime
;
43
}
44
45
std::string
46
AGBus::getName
() {
47
return
name
;
48
}
49
50
void
51
AGBus::print
()
const
{
52
std::cout <<
"- Bus:"
<<
" name="
<<
name
<<
" depTime="
<<
departureTime
<< std::endl;
53
}
54
55
/****************************************************************************/
AGBus::getDeparture
int getDeparture()
Definition:
AGBus.cpp:41
AGBus::departureTime
int departureTime
Definition:
AGBus.h:50
AGBus::name
std::string name
Definition:
AGBus.h:49
config.h
AGBus::setName
void setName(std::string name)
Definition:
AGBus.cpp:36
AGBus::print
void print() const
Definition:
AGBus.cpp:51
AGBus.h
AGBus::getName
std::string getName()
Definition:
AGBus.cpp:46
src
activitygen
city
AGBus.cpp
Generated on Sat Nov 23 2019 19:02:54 for Eclipse SUMO - Simulation of Urban MObility by
1.8.13