|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // Representation of a lane over a junction 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 /****************************************************************************/ 00014 // 00015 // This file is part of SUMO. 00016 // SUMO is free software: you can redistribute it and/or modify 00017 // it under the terms of the GNU General Public License as published by 00018 // the Free Software Foundation, either version 3 of the License, or 00019 // (at your option) any later version. 00020 // 00021 /****************************************************************************/ 00022 #ifndef MSInternalLane_h 00023 #define MSInternalLane_h 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 "MSLogicJunction.h" 00036 #include "MSEdge.h" 00037 #include "MSLane.h" 00038 #include "MSEdgeControl.h" 00039 #include <bitset> 00040 #include <deque> 00041 #include <vector> 00042 #include <utility> 00043 #include <map> 00044 #include <string> 00045 #include <iostream> 00046 #include "MSNet.h" 00047 00048 00049 // =========================================================================== 00050 // class declarations 00051 // =========================================================================== 00052 class MSLink; 00053 class MSMoveReminder; 00054 class GUILaneWrapper; 00055 class GUIGlObjectStorage; 00056 00057 00058 00059 // =========================================================================== 00060 // class definitions 00061 // =========================================================================== 00078 class MSInternalLane : public MSLane { 00079 public: 00094 MSInternalLane(const std::string& id, SUMOReal maxSpeed, SUMOReal length, MSEdge* const edge, 00095 unsigned int numericalID, const PositionVector& shape, SUMOReal width, 00096 const SUMOVehicleClasses& allowed, 00097 const SUMOVehicleClasses& disallowed) ; 00098 00099 00101 virtual ~MSInternalLane() ; 00102 00103 00106 00116 void setParentJunctionInformation(MSLogicJunction::InnerState* const foescont, 00117 unsigned int foesIdx) ; 00118 00119 00123 void setPassPosition(SUMOReal passPos) ; 00125 00126 00127 00130 00131 virtual bool moveCritical(SUMOTime t); 00133 00134 00135 00136 private: 00138 MSLogicJunction::InnerState* myFoesCont; 00139 00141 int myFoesIndex; 00142 00146 SUMOReal myPassPosition; 00147 00148 00149 private: 00151 MSInternalLane(const MSInternalLane& s); 00152 00154 MSInternalLane& operator=(const MSInternalLane& s); 00155 00156 00157 }; 00158 00159 00160 #endif 00161 00162 /****************************************************************************/ 00163