SUMO - Simulation of Urban MObility
GUIDetectorBuilder.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // Builds detectors for guisim
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 GUIDetectorBuilder_h
00022 #define GUIDetectorBuilder_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 <string>
00035 #include <netload/NLDetectorBuilder.h>
00036 
00037 
00038 // ===========================================================================
00039 // class declarations
00040 // ===========================================================================
00041 class MSNet;
00042 
00043 
00044 // ===========================================================================
00045 // class definitions
00046 // ===========================================================================
00056 class GUIDetectorBuilder : public NLDetectorBuilder {
00057 public:
00062     GUIDetectorBuilder(MSNet& net) ;
00063 
00064 
00066     ~GUIDetectorBuilder() ;
00067 
00068 
00073 
00083     virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
00084             MSLane* lane, SUMOReal pos, bool splitByType) ;
00085 
00086 
00096     virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
00097             MSLane* lane, SUMOReal pos, OutputDevice& od) ;
00098 
00099 
00100 #ifdef HAVE_MESOSIM
00101 
00110     virtual MEInductLoop* createMEInductLoop(const std::string& id,
00111             MESegment* s, SUMOReal pos) ;
00112 #endif
00113 
00114 
00127     virtual MSDetectorFileOutput* createSingleLaneE2Detector(const std::string& id,
00128             DetectorUsage usage, MSLane* lane, SUMOReal pos, SUMOReal length,
00129             SUMOTime haltingTimeThreshold,
00130             SUMOReal haltingSpeedThreshold,
00131             SUMOReal jamDistThreshold) ;
00132 
00133 
00147     virtual MSDetectorFileOutput* createMultiLaneE2Detector(
00148         const std::string& id, DetectorUsage usage, MSLane* lane, SUMOReal pos,
00149         SUMOTime haltingTimeThreshold,
00150         SUMOReal haltingSpeedThreshold,
00151         SUMOReal jamDistThreshold) ;
00152 
00153 
00164     virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
00165             const CrossSectionVector& entries,
00166             const CrossSectionVector& exits,
00167             SUMOReal haltingSpeedThreshold,
00168             SUMOTime haltingTimeThreshold) ;
00170 
00171 
00172 };
00173 
00174 
00175 #endif
00176 
00177 /****************************************************************************/
00178 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines