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