SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // Represents a SUMO edge and contains people and work densities 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 AGSTREET_H 00025 #define AGSTREET_H 00026 00027 00028 // =========================================================================== 00029 // included modules 00030 // =========================================================================== 00031 #ifdef _MSC_VER 00032 #include <windows_config.h> 00033 #else 00034 #include <config.h> 00035 #endif 00036 00037 #include <string> 00038 00039 00040 // =========================================================================== 00041 // class declarations 00042 // =========================================================================== 00043 class ROEdge; 00044 class AGPosition; 00045 00046 00047 // =========================================================================== 00048 // class definitions 00049 // =========================================================================== 00057 class AGStreet { 00058 public: 00059 AGStreet(const ROEdge* edge, SUMOReal popD = 0, SUMOReal workD = 0) ; 00060 00065 SUMOReal getLength() const ; 00066 00071 const std::string& getName() const ; 00072 00077 int getPopulation() const ; 00078 00083 void setPopulation(const int& pop) ; 00084 00089 int getWorkplaceNumber() const ; 00090 00095 void setWorkplaceNumber(const int& work) ; 00096 00100 void print() const ; 00101 00102 private: 00103 friend class AGPosition; 00104 00105 const ROEdge* edge; 00106 int pop; 00107 int work; 00108 }; 00109 00110 #endif 00111 00112 /****************************************************************************/