GUITriggerBuilder.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Builds trigger objects 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 GUITriggerBuilder_h
00020 #define GUITriggerBuilder_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/NLTriggerBuilder.h>
00034 
00035 
00036 // ===========================================================================
00037 // class declarations
00038 // ===========================================================================
00039 class MSTrigger;
00040 class MSNet;
00041 class MSLaneSpeedTrigger;
00042 class MSTriggerControl;
00043 
00044 
00045 // ===========================================================================
00046 // class definitions
00047 // ===========================================================================
00052 class GUITriggerBuilder : public NLTriggerBuilder {
00053 public:
00055     GUITriggerBuilder() throw();
00056 
00057 
00059     ~GUITriggerBuilder() throw();
00060 
00061 
00062 protected:
00067 
00068 
00080     virtual MSLaneSpeedTrigger* buildLaneSpeedTrigger(MSNet &net,
00081             const std::string &id, const std::vector<MSLane*> &destLanes,
00082             const std::string &file) throw(ProcessError);
00083 
00084 
00095     virtual void buildLaneEmitTrigger(MSNet &net,
00096                                       const std::string &id, MSLane *destLane, SUMOReal pos,
00097                                       const std::string &file) throw();
00098 
00099 
00110     virtual void buildRerouter(MSNet &net,
00111                                const std::string &id, std::vector<MSEdge*> &edges,
00112                                SUMOReal prob, const std::string &file, bool off) throw();
00113 
00114 
00126     virtual void buildBusStop(MSNet &net, const std::string &id,
00127                               const std::vector<std::string> &lines, MSLane *lane,
00128                               SUMOReal frompos, SUMOReal topos) throw();
00130 
00131 };
00132 
00133 
00134 #endif
00135 
00136 /****************************************************************************/
00137 

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