|
SUMO - Simulation of Urban MObility
|
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 00022 00023 // =========================================================================== 00024 // included modules 00025 // =========================================================================== 00026 #ifdef _MSC_VER 00027 #include <windows_config.h> 00028 #else 00029 #include <config.h> 00030 #endif 00031 00032 #include <iostream> 00033 #include <string> 00034 #include "AGBus.h" 00035 00036 00037 // =========================================================================== 00038 // method definitions 00039 // =========================================================================== 00040 void AGBus::setName(std::string name) { 00041 this->name= name; 00042 } 00043 00044 int 00045 AGBus::getDeparture() { 00046 return departureTime; 00047 } 00048 00049 std::string 00050 AGBus::getName() { 00051 return name; 00052 } 00053 00054 void 00055 AGBus::print() { 00056 std::cout << "- Bus:" << " name=" << name << " depTime=" << departureTime << std::endl; 00057 } 00058 00059 /****************************************************************************/