|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // Builds detectors for guisim 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 GUIDetectorBuilder_h 00020 #define GUIDetectorBuilder_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 <string> 00033 #include <netload/NLDetectorBuilder.h> 00034 00035 00036 // =========================================================================== 00037 // class declarations 00038 // =========================================================================== 00039 class MSNet; 00040 00041 00042 // =========================================================================== 00043 // class definitions 00044 // =========================================================================== 00054 class GUIDetectorBuilder : public NLDetectorBuilder { 00055 public: 00060 GUIDetectorBuilder(MSNet& net) throw(); 00061 00062 00064 ~GUIDetectorBuilder() throw(); 00065 00066 00071 00081 virtual MSDetectorFileOutput* createInductLoop(const std::string& id, 00082 MSLane* lane, SUMOReal pos, bool splitByType) throw(); 00083 00084 00094 virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id, 00095 MSLane* lane, SUMOReal pos, OutputDevice& od) throw(); 00096 00097 00098 #ifdef HAVE_MESOSIM 00099 00108 virtual MEInductLoop* createMEInductLoop(const std::string& id, 00109 MESegment* s, SUMOReal pos) throw(); 00110 #endif 00111 00112 00125 virtual MSDetectorFileOutput* createSingleLaneE2Detector(const std::string& id, 00126 DetectorUsage usage, MSLane* lane, SUMOReal pos, SUMOReal length, 00127 SUMOTime haltingTimeThreshold, 00128 SUMOReal haltingSpeedThreshold, 00129 SUMOReal jamDistThreshold) throw(); 00130 00131 00145 virtual MSDetectorFileOutput* createMultiLaneE2Detector( 00146 const std::string& id, DetectorUsage usage, MSLane* lane, SUMOReal pos, 00147 SUMOTime haltingTimeThreshold, 00148 SUMOReal haltingSpeedThreshold, 00149 SUMOReal jamDistThreshold) throw(); 00150 00151 00162 virtual MSDetectorFileOutput* createE3Detector(const std::string& id, 00163 const CrossSectionVector& entries, 00164 const CrossSectionVector& exits, 00165 SUMOReal haltingSpeedThreshold, 00166 SUMOTime haltingTimeThreshold) throw(); 00168 00169 00170 }; 00171 00172 00173 #endif 00174 00175 /****************************************************************************/ 00176