SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // with one ore more logics. 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 MSLogicJunction_h 00023 #define MSLogicJunction_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 "MSJunction.h" 00036 #include <utils/common/SUMOTime.h> 00037 #include <bitset> 00038 #include <vector> 00039 00040 00041 // =========================================================================== 00042 // class declarations 00043 // =========================================================================== 00044 class MSLane; 00045 00046 00047 // =========================================================================== 00048 // class definitions 00049 // =========================================================================== 00056 class MSLogicJunction : public MSJunction { 00057 public: 00058 00059 00061 virtual ~MSLogicJunction(); 00062 00064 typedef std::bitset<64> LinkFoes; 00065 00069 typedef std::bitset<64> InnerState; 00070 00072 virtual void postloadInit() ; 00073 00074 protected: 00082 MSLogicJunction(const std::string& id, const Position& position, 00083 const PositionVector& shape, 00084 std::vector<MSLane*> incoming 00085 #ifdef HAVE_INTERNAL_LANES 00086 , std::vector<MSLane*> internal 00087 #endif 00088 ) ; 00089 00090 protected: 00092 std::vector<MSLane*> myIncomingLanes; 00093 00094 #ifdef HAVE_INTERNAL_LANES 00095 00096 std::vector<MSLane*> myInternalLanes; 00097 #endif 00098 00100 InnerState myInnerState; 00101 00102 00103 private: 00105 MSLogicJunction(const MSLogicJunction&); 00106 00108 MSLogicJunction& operator=(const MSLogicJunction&); 00109 00110 }; 00111 00112 00113 #endif 00114 00115 /****************************************************************************/ 00116