SUMO - Simulation of Urban MObility
AGBus.cpp
Go to the documentation of this file.
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 
00025 
00026 // ===========================================================================
00027 // included modules
00028 // ===========================================================================
00029 #ifdef _MSC_VER
00030 #include <windows_config.h>
00031 #else
00032 #include <config.h>
00033 #endif
00034 
00035 #include <iostream>
00036 #include <string>
00037 #include "AGBus.h"
00038 
00039 
00040 // ===========================================================================
00041 // method definitions
00042 // ===========================================================================
00043 void AGBus::setName(std::string name) {
00044     this->name = name;
00045 }
00046 
00047 int
00048 AGBus::getDeparture() {
00049     return departureTime;
00050 }
00051 
00052 std::string
00053 AGBus::getName() {
00054     return name;
00055 }
00056 
00057 void
00058 AGBus::print() {
00059     std::cout << "- Bus:" << " name=" << name << " depTime=" << departureTime << std::endl;
00060 }
00061 
00062 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines