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 /****************************************************************************/
18 // A bus driving in the city
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <iostream>
28 #include <string>
29 #include "AGBus.h"
30 
31 
32 // ===========================================================================
33 // method definitions
34 // ===========================================================================
35 void AGBus::setName(std::string name) {
36  this->name = name;
37 }
38 
39 int
41  return departureTime;
42 }
43 
44 std::string
46  return name;
47 }
48 
49 void
50 AGBus::print() const {
51  std::cout << "- Bus:" << " name=" << name << " depTime=" << departureTime << std::endl;
52 }
53 
54 /****************************************************************************/
AGBus::print
void print() const
Definition: AGBus.cpp:50
AGBus::setName
void setName(std::string name)
Definition: AGBus.cpp:35
AGBus::getDeparture
int getDeparture()
Definition: AGBus.cpp:40
AGBus::name
std::string name
Definition: AGBus.h:48
AGBus.h
AGBus::departureTime
int departureTime
Definition: AGBus.h:49
config.h
AGBus::getName
std::string getName()
Definition: AGBus.cpp:45