Class Environment
Defined in File environment.hh
Class Documentation
-
class Environment
Public Types
Public Functions
-
inline explicit Environment(unsigned int num_workers, bool run_forever = default_run_forever, bool fast_fwd_execution = default_fast_fwd_execution, const Duration &timeout = Duration::max())
-
void assemble()
-
auto startup() -> std::thread
-
void sync_shutdown()
-
void async_shutdown()
-
void export_dependency_graph(const std::string &path)
-
void dump_to_yaml(const std::string &path)
-
inline auto top_level_reactors() const noexcept -> const auto&
-
inline auto logical_time() const noexcept -> const LogicalTime&
-
inline auto num_workers() const noexcept -> unsigned int
-
inline auto fast_fwd_execution() const noexcept -> bool
-
inline auto run_forever() const noexcept -> bool
-
inline auto max_reaction_index() const noexcept -> unsigned int
Public Static Functions
-
static void dump_trigger_to_yaml(std::ofstream &yaml, const BaseAction &trigger)
Private Members
-
const unsigned int num_workers_ = {default_number_worker}
-
unsigned int max_reaction_index_ = {default_max_reaction_index}
-
const bool run_forever_ = {default_run_forever}
-
const bool fast_fwd_execution_ = {default_fast_fwd_execution}
-
std::vector<Dependency> dependencies_ = {}
-
Phase phase_ = {Phase::Construction}
-
std::mutex shutdown_mutex_ = {}
-
inline explicit Environment(unsigned int num_workers, bool run_forever = default_run_forever, bool fast_fwd_execution = default_fast_fwd_execution, const Duration &timeout = Duration::max())