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: 00093 MSInternalLane(const std::string& id, SUMOReal maxSpeed, SUMOReal length, MSEdge* const edge, 00094 unsigned int numericalID, const PositionVector& shape, SUMOReal width, 00095 SVCPermissions permissions); 00096 00097 00099 virtual ~MSInternalLane() ; 00100 00101 00104 00114 void setParentJunctionInformation(MSLogicJunction::InnerState* const foescont, 00115 unsigned int foesIdx) ; 00116 00117 00121 void setPassPosition(SUMOReal passPos) ; 00123 00124 00125 00128 00129 virtual bool moveCritical(SUMOTime t); 00131 00132 00133 00134 private: 00136 MSLogicJunction::InnerState* myFoesCont; 00137 00139 int myFoesIndex; 00140 00144 SUMOReal myPassPosition; 00145 00146 00147 private: 00149 MSInternalLane(const MSInternalLane& s); 00150 00152 MSInternalLane& operator=(const MSInternalLane& s); 00153 00154 00155 }; 00156 00157 00158 #endif 00159 00160 /****************************************************************************/ 00161