1 #ifndef _MADARA_WAIT_SETTINGS_
2 #define _MADARA_WAIT_SETTINGS_
14 #include "madara/MadaraExport.h"
101 WaitSettings(
bool t_delay_sending_modifieds,
bool t_treat_globals_as_locals,
102 bool t_signal_updates,
bool t_always_overwrite,
bool t_always_expand,
103 bool t_track_local_changes,
std::string t_pre_print_statement,
104 std::string t_post_print_statement,
double t_poll_frequency,
105 double t_max_wait_time, uint64_t t_clock_increment = 1,
106 bool t_treat_locals_as_globals =
false,
bool t_stream_changes =
true,
107 bool t_exceptions_on_unitialized =
false)
108 :
EvalSettings(t_delay_sending_modifieds, t_treat_globals_as_locals,
109 t_signal_updates, t_always_overwrite, t_always_expand,
110 t_track_local_changes, t_pre_print_statement, t_post_print_statement,
111 t_clock_increment, t_treat_locals_as_globals, t_stream_changes,
112 t_exceptions_on_unitialized),
113 poll_frequency(t_poll_frequency),
114 max_wait_time(t_max_wait_time)
123 poll_frequency(rhs.poll_frequency),
124 max_wait_time(rhs.max_wait_time)
Provides functions and classes for the distributed knowledge base.
Copyright(c) 2020 Galois.
Encapsulates settings for an evaluation statement.
Encapsulates settings for a wait statement.
static const WaitSettings NO_EXPAND
Settings to delay sending modifieds and expand variables.
static const WaitSettings EXPAND
Settings to delay sending modifieds and expand variables.
static const WaitSettings NO_EXPAND_CHECKPOINT
Settings to not expand odifieds and enable checkpoints.
WaitSettings(const WaitSettings &rhs)
Copy constructor.
static const WaitSettings SEND
Settings to immediately send modifieds and expand variables.
static const WaitSettings DEFAULT
Settings to use whatever defaults there are.
WaitSettings(bool t_delay_sending_modifieds, bool t_treat_globals_as_locals, bool t_signal_updates, bool t_always_overwrite, bool t_always_expand, bool t_track_local_changes, std::string t_pre_print_statement, std::string t_post_print_statement, double t_poll_frequency, double t_max_wait_time, uint64_t t_clock_increment=1, bool t_treat_locals_as_globals=false, bool t_stream_changes=true, bool t_exceptions_on_unitialized=false)
Constructor.
static const WaitSettings SEND_NO_EXPAND
Settings to immediately send modifieds and not expand variables.
WaitSettings()
Constructor.
static const WaitSettings DELAY_CHECKPOINT
Settings to delay sending modifieds and enable checkpoints.
static const WaitSettings DELAY
Settings to delay sending modifieds and expand variables.
static const WaitSettings DELAY_NO_EXPAND
Settings to delay send modifieds and not expand variables.
double max_wait_time
Maximum time to wait for an expression to become true (in seconds)
static const WaitSettings DELAY_EXPAND
Settings to delay sending modifieds and expand variables.
static const WaitSettings SEND_EXPAND
Settings to immediately send modifieds and expand variables.
static const WaitSettings CHECKPOINT
Settings to enable checkpoints.
double poll_frequency
Frequency to poll an expression for truth (in seconds)