OMNeT++ Simulation Library  6.0.3
clifecyclelistener.h
1 //==========================================================================
2 // CLIFECYCLELISTENER.H - header for
3 // OMNeT++/OMNEST
4 // Discrete System Simulation in C++
5 //
6 //==========================================================================
7 
8 /*--------------------------------------------------------------*
9  Copyright (C) 1992-2017 Andras Varga
10  Copyright (C) 2006-2017 OpenSim Ltd.
11 
12  This file is distributed WITHOUT ANY WARRANTY. See the file
13  `license' for details on this and other legal matters.
14 *--------------------------------------------------------------*/
15 
16 #ifndef __OMNETPP_CLIFECYCLELISTENER_H
17 #define __OMNETPP_CLIFECYCLELISTENER_H
18 
19 #include "cobject.h"
20 
21 namespace omnetpp {
22 
29 {
36 
43 
52 
58 
66 
74 
80 
87 
94 
100  //TODO the detail object should contain the exception object
102 
109 
117 
130 
137 
145 
152 };
153 
154 
187 {
188  public:
193 
197  virtual void lifecycleEvent(SimulationLifecycleEventType eventType, cObject *details) = 0;
198 
202  virtual void listenerAdded() {}
203 
209  virtual void listenerRemoved() {}
210 
214  static const char *getSimulationLifecycleEventName(SimulationLifecycleEventType eventType);
215 };
216 
217 } // namespace omnetpp
218 
219 #endif
omnetpp::LF_ON_RUN_END
@ LF_ON_RUN_END
Definition: clifecyclelistener.h:129
omnetpp::cObject
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
omnetpp::LF_ON_SIMULATION_ERROR
@ LF_ON_SIMULATION_ERROR
Definition: clifecyclelistener.h:101
omnetpp::cISimulationLifecycleListener::listenerAdded
virtual void listenerAdded()
Definition: clifecyclelistener.h:202
omnetpp::LF_POST_NETWORK_SETUP
@ LF_POST_NETWORK_SETUP
Definition: clifecyclelistener.h:51
omnetpp::SimulationLifecycleEventType
SimulationLifecycleEventType
Event type for cISimulationLifecycleListener's lifecycleEvent() method.
Definition: clifecyclelistener.h:28
omnetpp::LF_PRE_NETWORK_SETUP
@ LF_PRE_NETWORK_SETUP
Definition: clifecyclelistener.h:42
omnetpp::LF_ON_STARTUP
@ LF_ON_STARTUP
Definition: clifecyclelistener.h:35
omnetpp::LF_PRE_NETWORK_INITIALIZE
@ LF_PRE_NETWORK_INITIALIZE
Definition: clifecyclelistener.h:57
omnetpp::LF_ON_SHUTDOWN
@ LF_ON_SHUTDOWN
Definition: clifecyclelistener.h:151
omnetpp::LF_ON_SIMULATION_SUCCESS
@ LF_ON_SIMULATION_SUCCESS
Definition: clifecyclelistener.h:93
omnetpp::LF_POST_NETWORK_INITIALIZE
@ LF_POST_NETWORK_INITIALIZE
Definition: clifecyclelistener.h:65
omnetpp::LF_PRE_NETWORK_FINISH
@ LF_PRE_NETWORK_FINISH
Definition: clifecyclelistener.h:108
omnetpp::LF_POST_NETWORK_DELETE
@ LF_POST_NETWORK_DELETE
Definition: clifecyclelistener.h:144
omnetpp::LF_POST_NETWORK_FINISH
@ LF_POST_NETWORK_FINISH
Definition: clifecyclelistener.h:116
omnetpp::LF_ON_SIMULATION_START
@ LF_ON_SIMULATION_START
Definition: clifecyclelistener.h:73
omnetpp::LF_ON_SIMULATION_PAUSE
@ LF_ON_SIMULATION_PAUSE
Definition: clifecyclelistener.h:79
omnetpp::cISimulationLifecycleListener
A callback interface for receiving notifications at various stages simulations, including setting up,...
Definition: clifecyclelistener.h:186
omnetpp::LF_PRE_NETWORK_DELETE
@ LF_PRE_NETWORK_DELETE
Definition: clifecyclelistener.h:136
omnetpp::cISimulationLifecycleListener::listenerRemoved
virtual void listenerRemoved()
Definition: clifecyclelistener.h:209
omnetpp::LF_ON_SIMULATION_RESUME
@ LF_ON_SIMULATION_RESUME
Definition: clifecyclelistener.h:86