SUMO - Simulation of Urban MObility

AGBus.h

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