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