|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // Represents a SUMO edge and contains people and work densities 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 AGSTREET_H 00022 #define AGSTREET_H 00023 00024 00025 // =========================================================================== 00026 // included modules 00027 // =========================================================================== 00028 #ifdef _MSC_VER 00029 #include <windows_config.h> 00030 #else 00031 #include <config.h> 00032 #endif 00033 00034 #include <string> 00035 00036 00037 // =========================================================================== 00038 // class declarations 00039 // =========================================================================== 00040 class ROEdge; 00041 class AGPosition; 00042 00043 00044 // =========================================================================== 00045 // class definitions 00046 // =========================================================================== 00054 class AGStreet { 00055 public: 00056 AGStreet(const ROEdge* edge, SUMOReal popD = 0, SUMOReal workD = 0) throw(); 00057 00062 SUMOReal getLength() const throw(); 00063 00068 const std::string& getName() const throw(); 00069 00074 int getPopulation() const throw(); 00075 00080 void setPopulation(const int& pop) throw(); 00081 00086 int getWorkplaceNumber() const throw(); 00087 00092 void setWorkplaceNumber(const int& work) throw(); 00093 00097 void print() const throw(); 00098 00099 private: 00100 friend class AGPosition; 00101 00102 const ROEdge* edge; 00103 int pop; 00104 int work; 00105 }; 00106 00107 #endif 00108 00109 /****************************************************************************/