Eclipse SUMO - Simulation of Urban MObility
AGBus.h
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 #ifndef AGBUS_H
21 #define AGBUS_H
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <iostream>
29 #include <string>
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
35 class AGBus {
36 public:
37  AGBus(std::string name, int depTime) :
38  name(name),
39  departureTime(depTime) {};
40  AGBus(int depTime) :
41  departureTime(depTime) {};
42  void setName(std::string name);
43  int getDeparture();
44  std::string getName();
45  void print() const;
46 
47 private:
48  std::string name;
50 };
51 
52 #endif
53 
54 /****************************************************************************/
AGBus::print
void print() const
Definition: AGBus.cpp:50
AGBus::setName
void setName(std::string name)
Definition: AGBus.cpp:35
AGBus::AGBus
AGBus(std::string name, int depTime)
Definition: AGBus.h:37
AGBus::getDeparture
int getDeparture()
Definition: AGBus.cpp:40
AGBus::name
std::string name
Definition: AGBus.h:48
AGBus
Definition: AGBus.h:35
AGBus::departureTime
int departureTime
Definition: AGBus.h:49
config.h
AGBus::AGBus
AGBus(int depTime)
Definition: AGBus.h:40
AGBus::getName
std::string getName()
Definition: AGBus.cpp:45