GUIDetectorBuilder.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Builds detectors for guisim
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 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 <utils/common/PhysicalTypeDefs.h>
00034 #include <microsim/MSNet.h>
00035 #include <netload/NLDetectorBuilder.h>
00036 
00037 
00038 // ===========================================================================
00039 // class declarations
00040 // ===========================================================================
00041 class MSDetectorControl;
00042 
00043 
00044 // ===========================================================================
00045 // class definitions
00046 // ===========================================================================
00056 class GUIDetectorBuilder : public NLDetectorBuilder {
00057 public:
00062     GUIDetectorBuilder(MSNet &net) throw();
00063 
00064 
00066     ~GUIDetectorBuilder() throw();
00067 
00068 
00073 
00082     virtual MSInductLoop *createInductLoop(const std::string &id,
00083                                            MSLane *lane, SUMOReal pos) throw();
00084 
00085 
00086 #ifdef HAVE_MESOSIM
00087 
00096     virtual MEInductLoop *createMEInductLoop(const std::string &id,
00097             MESegment *s, SUMOReal pos) throw();
00098 #endif
00099 
00100 
00113     virtual MSE2Collector *createSingleLaneE2Detector(const std::string &id,
00114             DetectorUsage usage, MSLane *lane, SUMOReal pos, SUMOReal length,
00115             SUMOTime haltingTimeThreshold,
00116             MetersPerSecond haltingSpeedThreshold,
00117             SUMOReal jamDistThreshold) throw();
00118 
00119 
00133     virtual MS_E2_ZS_CollectorOverLanes *createMultiLaneE2Detector(
00134         const std::string &id, DetectorUsage usage, MSLane *lane, SUMOReal pos,
00135         SUMOTime haltingTimeThreshold,
00136         MetersPerSecond haltingSpeedThreshold,
00137         SUMOReal jamDistThreshold) throw();
00138 
00139 
00150     virtual MSE3Collector *createE3Detector(const std::string &id,
00151                                             const CrossSectionVector &entries,
00152                                             const CrossSectionVector &exits,
00153                                             MetersPerSecond haltingSpeedThreshold,
00154                                             SUMOTime haltingTimeThreshold) throw();
00156 
00157 
00158 };
00159 
00160 
00161 #endif
00162 
00163 /****************************************************************************/
00164 

Generated on Wed May 5 00:06:29 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6