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: 00060 ROLane(const std::string& id, SUMOReal length, SUMOReal maxSpeed, SVCPermissions permissions) : 00061 Named(id), myLength(length), myMaxSpeed(maxSpeed), myPermissions(permissions) 00062 {} 00063 00064 00066 ~ROLane() { } 00067 00068 00072 SUMOReal getLength() const { 00073 return myLength; 00074 } 00075 00076 00080 SUMOReal getSpeed() const { 00081 return myMaxSpeed; 00082 } 00083 00084 00088 inline SVCPermissions getPermissions() { 00089 return myPermissions; 00090 } 00091 00092 00093 private: 00095 SUMOReal myLength; 00096 00098 SUMOReal myMaxSpeed; 00099 00101 SVCPermissions myPermissions; 00102 00103 00104 private: 00106 ROLane(const ROLane& src); 00107 00109 ROLane& operator=(const ROLane& src); 00110 00111 }; 00112 00113 00114 #endif 00115 00116 /****************************************************************************/ 00117