SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // Builds trigger objects for guisim 00010 /****************************************************************************/ 00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00013 /****************************************************************************/ 00014 // 00015 // This file is part of SUMO. 00016 // SUMO is free software: you can redistribute it and/or modify 00017 // it under the terms of the GNU General Public License as published by 00018 // the Free Software Foundation, either version 3 of the License, or 00019 // (at your option) any later version. 00020 // 00021 /****************************************************************************/ 00022 #ifndef GUITriggerBuilder_h 00023 #define GUITriggerBuilder_h 00024 00025 00026 // =========================================================================== 00027 // included modules 00028 // =========================================================================== 00029 #ifdef _MSC_VER 00030 #include <windows_config.h> 00031 #else 00032 #include <config.h> 00033 #endif 00034 00035 #include <string> 00036 #include <netload/NLTriggerBuilder.h> 00037 00038 00039 // =========================================================================== 00040 // class declarations 00041 // =========================================================================== 00042 class MSTrigger; 00043 class MSNet; 00044 class MSLaneSpeedTrigger; 00045 class MSTriggerControl; 00046 00047 00048 // =========================================================================== 00049 // class definitions 00050 // =========================================================================== 00055 class GUITriggerBuilder : public NLTriggerBuilder { 00056 public: 00058 GUITriggerBuilder() ; 00059 00060 00062 ~GUITriggerBuilder() ; 00063 00064 00065 protected: 00070 00071 00083 virtual MSLaneSpeedTrigger* buildLaneSpeedTrigger(MSNet& net, 00084 const std::string& id, const std::vector<MSLane*> &destLanes, 00085 const std::string& file) ; 00086 00087 00098 virtual MSTriggeredRerouter* buildRerouter(MSNet& net, 00099 const std::string& id, std::vector<MSEdge*> &edges, 00100 SUMOReal prob, const std::string& file, bool off) ; 00101 00102 00115 virtual void buildBusStop(MSNet& net, const std::string& id, 00116 const std::vector<std::string> &lines, MSLane* lane, 00117 SUMOReal frompos, SUMOReal topos) throw(InvalidArgument); 00119 00120 }; 00121 00122 00123 #endif 00124 00125 /****************************************************************************/ 00126