|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // Builds trigger objects 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 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 buildRerouter(MSNet& net, 00096 const std::string& id, std::vector<MSEdge*> &edges, 00097 SUMOReal prob, const std::string& file, bool off) throw(); 00098 00099 00112 virtual void buildBusStop(MSNet& net, const std::string& id, 00113 const std::vector<std::string> &lines, MSLane* lane, 00114 SUMOReal frompos, SUMOReal topos) throw(InvalidArgument); 00116 00117 }; 00118 00119 00120 #endif 00121 00122 /****************************************************************************/ 00123