00001 /****************************************************************************/ 00007 // Representation of a lane over a junction 00008 /****************************************************************************/ 00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors 00011 /****************************************************************************/ 00012 // 00013 // This program is free software; you can redistribute it and/or modify 00014 // it under the terms of the GNU General Public License as published by 00015 // the Free Software Foundation; either version 2 of the License, or 00016 // (at your option) any later version. 00017 // 00018 /****************************************************************************/ 00019 #ifndef MSInternalLane_h 00020 #define MSInternalLane_h 00021 00022 00023 // =========================================================================== 00024 // included modules 00025 // =========================================================================== 00026 #ifdef _MSC_VER 00027 #include <windows_config.h> 00028 #else 00029 #include <config.h> 00030 #endif 00031 00032 #include "MSLogicJunction.h" 00033 #include "MSEdge.h" 00034 #include "MSLane.h" 00035 #include "MSEdgeControl.h" 00036 #include <bitset> 00037 #include <deque> 00038 #include <vector> 00039 #include <utility> 00040 #include <map> 00041 #include <string> 00042 #include <iostream> 00043 #include "MSNet.h" 00044 00045 00046 // =========================================================================== 00047 // class declarations 00048 // =========================================================================== 00049 class MSLink; 00050 class MSMoveReminder; 00051 class GUILaneWrapper; 00052 class GUIGlObjectStorage; 00053 00054 00055 00056 // =========================================================================== 00057 // class definitions 00058 // =========================================================================== 00075 class MSInternalLane : public MSLane { 00076 public: 00089 MSInternalLane(const std::string &id, SUMOReal maxSpeed, SUMOReal length, MSEdge * const edge, 00090 unsigned int numericalID, const Position2DVector &shape, 00091 const std::vector<SUMOVehicleClass> &allowed, 00092 const std::vector<SUMOVehicleClass> &disallowed) throw(); 00093 00094 00096 virtual ~MSInternalLane() throw(); 00097 00098 00101 00111 void setParentJunctionInformation(MSLogicJunction::InnerState * const foescont, 00112 unsigned int foesIdx) throw(); 00113 00114 00118 void setPassPosition(SUMOReal passPos) throw(); 00120 00121 00122 00125 00126 virtual bool moveCritical(SUMOTime t); 00128 00129 00130 00131 private: 00133 MSLogicJunction::InnerState * myFoesCont; 00134 00136 int myFoesIndex; 00137 00141 SUMOReal myPassPosition; 00142 00143 00144 private: 00146 MSInternalLane(const MSInternalLane &s); 00147 00149 MSInternalLane &operator=(const MSInternalLane &s); 00150 00151 00152 }; 00153 00154 00155 #endif 00156 00157 /****************************************************************************/ 00158
1.5.6