diff options
Diffstat (limited to 'src/Inputs.hpp')
| -rw-r--r-- | src/Inputs.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Inputs.hpp b/src/Inputs.hpp index 487686f..50ce8e2 100644 --- a/src/Inputs.hpp +++ b/src/Inputs.hpp @@ -21,6 +21,10 @@ class Inputs { std::vector<double> wake_ts; /// @brief Wake up time durations std::vector<double> wake_duration; + /// @brief To handle unschedule_on_rcv + std::vector<double> wake_ts_backup; + std::vector<double> wake_duration_backup; + /** * Recursively merge overlapping events */ @@ -46,10 +50,12 @@ public: * Get current event timestamp */ double GetTS(){return wake_ts.front();} + double GetHintTS(double clock); /** * Get current event duration */ double GetDuration(){return wake_duration.front();} + double GetHintDuration(double clock); /** * Get next event timestamp */ @@ -64,6 +70,10 @@ public: */ void GotoNextEvent(); /** + * Reset the initial event list + */ + void ResetEvents(double clock); + /** * Allows to add a *FUTURE* event and merge overlapping events */ void AddEvent(double ts, double duration); @@ -76,9 +86,13 @@ public: bool is_sender; bool use_hint; bool extended; + bool farhint; + bool unschedule_on_rcv; + bool shutdown_on_rcv; int data_size; int hint_size; int seed; int n_nodes; double latency; + double hintdist; };
\ No newline at end of file |
