SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00008 // Event sent when the the simulation is over 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 GUIEvent_SimulationEnded_h 00022 #define GUIEvent_SimulationEnded_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 <utils/gui/events/GUIEvent.h> 00035 #include <utils/common/SUMOTime.h> 00036 #include <microsim/MSNet.h> 00037 00038 00039 // =========================================================================== 00040 // class definitions 00041 // =========================================================================== 00048 class GUIEvent_SimulationEnded : public GUIEvent { 00049 public: 00054 GUIEvent_SimulationEnded(MSNet::SimulationState reason, SUMOTime step) 00055 : GUIEvent(EVENT_SIMULATION_ENDED), myReason(reason), myStep(step) {} 00056 00057 00059 ~GUIEvent_SimulationEnded() { } 00060 00061 00065 SUMOTime getTimeStep() const { 00066 return myStep; 00067 } 00068 00069 00073 MSNet::SimulationState getReason() const { 00074 return myReason; 00075 } 00076 00077 00078 protected: 00080 MSNet::SimulationState myReason; 00081 00083 SUMOTime myStep; 00084 00085 00086 }; 00087 00088 00089 #endif 00090 00091 /****************************************************************************/ 00092