|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00008 // A single lane the router may use 00009 /****************************************************************************/ 00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00012 /****************************************************************************/ 00013 // 00014 // This file is part of SUMO. 00015 // SUMO 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 3 of the License, or 00018 // (at your option) any later version. 00019 // 00020 /****************************************************************************/ 00021 #ifndef ROLane_h 00022 #define ROLane_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 <vector> 00035 #include <utils/common/Named.h> 00036 #include <utils/common/SUMOVehicleClass.h> 00037 00038 00039 // =========================================================================== 00040 // class definitions 00041 // =========================================================================== 00051 class ROLane : public Named { 00052 public: 00061 ROLane(const std::string& id, SUMOReal length, SUMOReal maxSpeed, 00062 const SUMOVehicleClasses& allowed, 00063 const SUMOVehicleClasses& disallowed) 00064 : Named(id), myLength(length), myMaxSpeed(maxSpeed), 00065 myAllowedClasses(allowed), myNotAllowedClasses(disallowed) { 00066 } 00067 00068 00070 ~ROLane() { } 00071 00072 00076 SUMOReal getLength() const { 00077 return myLength; 00078 } 00079 00080 00084 SUMOReal getSpeed() const { 00085 return myMaxSpeed; 00086 } 00087 00088 00092 const SUMOVehicleClasses& getAllowedClasses() const { 00093 return myAllowedClasses; 00094 } 00095 00096 00100 const SUMOVehicleClasses& getNotAllowedClasses() const { 00101 return myNotAllowedClasses; 00102 } 00103 00104 00105 private: 00107 SUMOReal myLength; 00108 00110 SUMOReal myMaxSpeed; 00111 00113 SUMOVehicleClasses myAllowedClasses; 00114 00116 SUMOVehicleClasses myNotAllowedClasses; 00117 00118 00119 private: 00121 ROLane(const ROLane& src); 00122 00124 ROLane& operator=(const ROLane& src); 00125 00126 }; 00127 00128 00129 #endif 00130 00131 /****************************************************************************/ 00132