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
42  return departureTime;
43 }
44 
45 std::string
47  return name;
48 }
49 
50 void
51 AGBus::print() const {
52  std::cout << "- Bus:" << " name=" << name << " depTime=" << departureTime << std::endl;
53 }
54 
55 /****************************************************************************/
int getDeparture()
Definition: AGBus.cpp:41
int departureTime
Definition: AGBus.h:50
std::string name
Definition: AGBus.h:49
void setName(std::string name)
Definition: AGBus.cpp:36
void print() const
Definition: AGBus.cpp:51
std::string getName()
Definition: AGBus.cpp:46