6 #include "gvtmanager.h" 11 virtual void iteration_done() = 0;
12 virtual void reset() = 0;
13 virtual bool ready()
const = 0;
19 unsigned triggers_left;
22 void iteration_done() { trigger->iteration_done(); }
23 void reset() {
if (triggers_left > 0) triggers_left--; trigger->reset(); }
24 bool ready()
const {
return triggers_left > 0 && trigger->ready(); }
32 void iteration_done() {}
34 bool ready()
const {
return value; }
39 unsigned int iter_cnt, iter_max;
41 CountTrigger(
unsigned max) : iter_cnt(0), iter_max(max) {}
43 : iter_cnt(max - first), iter_max(max) {}
44 void iteration_done() { iter_cnt++; }
45 void reset() { iter_cnt = 0; }
46 bool ready()
const {
return iter_cnt >= iter_max; }
56 void iteration_done() {}
Base class defining basic scheduler functionality.
Definition: scheduler.h:36
Globals * globals
Global variables per PE.
Definition: scheduler.h:47
Declares most types used within the simulator and by models.
Time g_last_gvt
Last computed GVT, used for rollbacks.
Definition: globals.h:82
virtual Time get_min_time() const
Get the minimum time of any event on this PE.
Definition: scheduler.C:112