SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // A bus driving in the city 00010 /****************************************************************************/ 00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00013 // activitygen module 00014 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/) 00015 /****************************************************************************/ 00016 // 00017 // This file is part of SUMO. 00018 // SUMO is free software: you can redistribute it and/or modify 00019 // it under the terms of the GNU General Public License as published by 00020 // the Free Software Foundation, either version 3 of the License, or 00021 // (at your option) any later version. 00022 // 00023 /****************************************************************************/ 00024 #ifndef AGBUS_H 00025 #define AGBUS_H 00026 00027 // =========================================================================== 00028 // included modules 00029 // =========================================================================== 00030 #ifdef _MSC_VER 00031 #include <windows_config.h> 00032 #else 00033 #include <config.h> 00034 #endif 00035 00036 #include <iostream> 00037 #include <string> 00038 00039 00040 // =========================================================================== 00041 // class definitions 00042 // =========================================================================== 00043 class AGBus { 00044 public: 00045 AGBus(std::string name, int depTime) : 00046 name(name), 00047 departureTime(depTime) {}; 00048 AGBus(int depTime) : 00049 departureTime(depTime) {}; 00050 void setName(std::string name); 00051 int getDeparture(); 00052 std::string getName(); 00053 void print(); 00054 00055 private: 00056 std::string name; 00057 int departureTime; 00058 }; 00059 00060 #endif 00061 00062 /****************************************************************************/