SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00008 // ------------------- 00009 /****************************************************************************/ 00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00012 /****************************************************************************/ 00013 // 00014 // This file is part of SUMO. 00015 // SUMO is free software: you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation, either version 3 of the License, or 00018 // (at your option) any later version. 00019 // 00020 /****************************************************************************/ 00021 #ifndef NIVissimExtendedEdgePoint_h 00022 #define NIVissimExtendedEdgePoint_h 00023 00024 00025 // =========================================================================== 00026 // included modules 00027 // =========================================================================== 00028 #ifdef _MSC_VER 00029 #include <windows_config.h> 00030 #else 00031 #include <config.h> 00032 #endif 00033 00034 #include <vector> 00035 00036 00037 // =========================================================================== 00038 // class declarations 00039 // =========================================================================== 00040 class NBEdge; 00041 class Position; 00042 00043 00044 // =========================================================================== 00045 // class definitions 00046 // =========================================================================== 00050 class NIVissimExtendedEdgePoint { 00051 public: 00058 NIVissimExtendedEdgePoint(int edgeid, const std::vector<int>& lanes, 00059 SUMOReal position, const std::vector<int>& assignedVehicles) ; 00060 ~NIVissimExtendedEdgePoint(); 00061 int getEdgeID() const; 00062 SUMOReal getPosition() const; 00063 Position getGeomPosition() const; 00064 const std::vector<int>& getLanes() const; 00065 00066 00074 void recheckLanes(const NBEdge* const edge) ; 00075 00076 private: 00077 int myEdgeID; 00078 std::vector<int> myLanes; 00079 SUMOReal myPosition; 00080 std::vector<int> myAssignedVehicles; 00081 }; 00082 00083 00084 #endif 00085 00086 /****************************************************************************/ 00087