SUMO - Simulation of Urban MObility
NLSucceedingLaneBuilder.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // Temporary storage for a lanes succeeding lanes while parsing them
00009 // This class is only used when parsing legacy networks using tags succ/succlane
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 NLSucceedingLaneBuilder_h
00023 #define NLSucceedingLaneBuilder_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 <string>
00036 #include <microsim/MSLinkCont.h>
00037 
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class MSJunction;
00043 class NLJunctionControlBuilder;
00044 
00045 
00046 // ===========================================================================
00047 // class definitions
00048 // ===========================================================================
00054 class NLSucceedingLaneBuilder {
00055 public:
00060     NLSucceedingLaneBuilder(NLJunctionControlBuilder& jb) ;
00061 
00062 
00064     ~NLSucceedingLaneBuilder() ;
00065 
00066 
00072     void openSuccLane(const std::string& laneId) ;
00073 
00074 
00094     void addSuccLane(const std::string& laneId,
00095 #ifdef HAVE_INTERNAL_LANES
00096                      const std::string& viaID, SUMOReal pass,
00097 #endif
00098                      LinkDirection dir, LinkState state,
00099                      const std::string& tlid = "", unsigned int linkNo = 0) throw(InvalidArgument);
00100 
00101 
00109     void closeSuccLane() throw(InvalidArgument);
00110 
00111 
00115     const std::string& getCurrentLaneName() const ;
00116 
00117 
00118 private:
00121     std::string myCurrentLane;
00122 
00125     MSLinkCont* mySuccLanes;
00126 
00128     NLJunctionControlBuilder& myJunctionControlBuilder;
00129 
00130 
00131 private:
00133     NLSucceedingLaneBuilder(const NLSucceedingLaneBuilder& s);
00134 
00136     NLSucceedingLaneBuilder& operator=(const NLSucceedingLaneBuilder& s);
00137 
00138 
00139 };
00140 
00141 
00142 #endif
00143 
00144 /****************************************************************************/
00145 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines