SUMO - Simulation of Urban MObility

MSInternalLane.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Representation of a lane over a junction
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 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:
00091     MSInternalLane(const std::string& id, SUMOReal maxSpeed, SUMOReal length, MSEdge* const edge,
00092                    unsigned int numericalID, const PositionVector& shape, SUMOReal width,
00093                    const SUMOVehicleClasses& allowed,
00094                    const SUMOVehicleClasses& disallowed) throw();
00095 
00096 
00098     virtual ~MSInternalLane() throw();
00099 
00100 
00103 
00113     void setParentJunctionInformation(MSLogicJunction::InnerState* const foescont,
00114                                       unsigned int foesIdx) throw();
00115 
00116 
00120     void setPassPosition(SUMOReal passPos) throw();
00122 
00123 
00124 
00127 
00128     virtual bool moveCritical(SUMOTime t);
00130 
00131 
00132 
00133 private:
00135     MSLogicJunction::InnerState* myFoesCont;
00136 
00138     int myFoesIndex;
00139 
00143     SUMOReal myPassPosition;
00144 
00145 
00146 private:
00148     MSInternalLane(const MSInternalLane& s);
00149 
00151     MSInternalLane& operator=(const MSInternalLane& s);
00152 
00153 
00154 };
00155 
00156 
00157 #endif
00158 
00159 /****************************************************************************/
00160 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines