SUMO - Simulation of Urban MObility
MSInternalJunction.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // 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 MSInternalJunction_h
00023 #define MSInternalJunction_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 <utils/common/StdDefs.h>
00036 #include "MSLogicJunction.h"
00037 #include <bitset>
00038 #include <vector>
00039 #include <string>
00040 
00041 
00042 // ===========================================================================
00043 // class declarations
00044 // ===========================================================================
00045 class MSLane;
00046 class MSJunctionLogic;
00047 class MSLink;
00048 
00049 
00050 // ===========================================================================
00051 // class definitions
00052 // ===========================================================================
00059 #ifdef HAVE_INTERNAL_LANES
00060 class MSInternalJunction : public MSLogicJunction {
00061 public:
00069     MSInternalJunction(const std::string& id, const Position& position,
00070                        const PositionVector& shape,
00071                        std::vector<MSLane*> incoming, std::vector<MSLane*> internal) ;
00072 
00074     virtual ~MSInternalJunction();
00075 
00076 
00077     void postloadInit() ;
00078 
00079     const std::vector<MSLink*> &getFoeLinks(const MSLink* const srcLink) const {
00080         UNUSED_PARAMETER(srcLink);
00081         return myInternalLinkFoes;
00082     }
00083 
00084     const std::vector<MSLane*> &getFoeInternalLanes(const MSLink* const srcLink) const {
00085         UNUSED_PARAMETER(srcLink);
00086         return myInternalLaneFoes;
00087     }
00088 
00089 private:
00090 
00091     std::vector<MSLink*> myInternalLinkFoes;
00092     std::vector<MSLane*> myInternalLaneFoes;
00093 
00095     MSInternalJunction(const MSInternalJunction&);
00096 
00098     MSInternalJunction& operator=(const MSInternalJunction&);
00099 
00100 };
00101 
00102 
00103 #endif
00104 #endif
00105 
00106 /****************************************************************************/
00107 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines