Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AGBus.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2024 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 are made available under the
7
// terms of the Eclipse Public License 2.0 which is available at
8
// https://www.eclipse.org/legal/epl-2.0/
9
// This Source Code may also be made available under the following Secondary
10
// Licenses when the conditions for such availability set forth in the Eclipse
11
// Public License 2.0 are satisfied: GNU General Public License, version 2
12
// or later which is available at
13
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
14
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
15
/****************************************************************************/
22
// A bus driving in the city
23
/****************************************************************************/
24
#pragma once
25
#include <config.h>
26
27
#include <iostream>
28
#include <string>
29
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
34
class
AGBus
{
35
public
:
36
AGBus
(std::string name,
int
depTime) :
37
myName
(name),
38
myDepartureTime
(depTime) {};
39
AGBus
(
int
depTime) :
40
myDepartureTime
(depTime) {};
41
void
setName
(std::string name);
42
int
getDeparture
();
43
std::string
getName
();
44
void
print
()
const
;
45
46
private
:
47
std::string
myName
;
48
int
myDepartureTime
;
49
};
AGBus
Definition
AGBus.h:34
AGBus::myDepartureTime
int myDepartureTime
Definition
AGBus.h:48
AGBus::myName
std::string myName
Definition
AGBus.h:47
AGBus::AGBus
AGBus(std::string name, int depTime)
Definition
AGBus.h:36
AGBus::getName
std::string getName()
Definition
AGBus.cpp:44
AGBus::setName
void setName(std::string name)
Definition
AGBus.cpp:34
AGBus::AGBus
AGBus(int depTime)
Definition
AGBus.h:39
AGBus::print
void print() const
Definition
AGBus.cpp:49
AGBus::getDeparture
int getDeparture()
Definition
AGBus.cpp:39
src
activitygen
city
AGBus.h
Generated on Mon Dec 23 2024 00:15:52 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8