1 #ifndef EVENTINTERVENTION_H
3 #define EVENTINTERVENTION_H
5 #include "simpactevent.h"
9 class EventIntervention :
public SimpactEvent
15 std::string getDescription(
double tNow)
const;
16 void writeLogs(
double tNow)
const;
18 void fire(
State *pState,
double t);
22 bool isEveryoneAffected()
const {
return true; }
25 static void obtainConfig(ConfigWriter &config);
26 static bool hasNextIntervention();
30 static double getNextInterventionTime();
31 static void popNextInterventionInfo(
double &t,
ConfigSettings &config);
33 static std::list<double> m_interventionTimes;
34 static std::list<ConfigSettings> m_interventionSettings;
35 static bool m_interventionsProcessed;
38 #endif // EVENTINTERVENTION_H
This class both describes the simulation state and contains the core algorithm (as shown on the main ...
Definition: state.h:40
Helper class to read configuration settings, more advanced than ConfigReader.
Definition: configsettings.h:20
This class allows you to generate random numbers, and uses the GNU Scientific Library for this...
Definition: gslrandomnumbergenerator.h:16