![]() |
FireSTARR
|
Represents a full set of simulations using all available weather streams. More...
#include <Iteration.h>
Public Member Functions | |
Iteration (vector< Scenario * > scenarios) noexcept | |
Constructor. | |
Iteration (const Iteration &rhs)=default | |
Copy constructor. | |
Iteration (Iteration &&rhs)=default | |
Move constructor. | |
Iteration & | operator= (const Iteration &rhs)=default |
Copy assignment. | |
Iteration & | operator= (Iteration &&rhs)=default |
Move assignment. | |
Iteration * | reset_with_new_start (const shared_ptr< topo::Cell > &start_cell) |
Assign start Cell and create new thresholds for use in each Scenario. | |
Iteration * | reset (mt19937 *mt_extinction, mt19937 *mt_spread) |
Create new thresholds for use in each Scenario. | |
const vector< Scenario * > & | getScenarios () const noexcept |
List of Scenarios this Iteration contains. | |
void | cancel (bool show_warning) noexcept |
vector< DurationSize > | savePoints () const |
Points in time that ProbabilityMaps get saved for. | |
DurationSize | startTime () const |
Time that simulations start. | |
size_t | size () const noexcept |
Number of Scenarios in this Iteration. | |
util::SafeVector | finalSizes () const |
SafeVector of sizes that Scenarios have resulted in. | |
Private Attributes | |
vector< Scenario * > | scenarios_ |
List of Scenarios this Iteration contains. | |
util::SafeVector | final_sizes_ {} |
SafeVector of sizes that Scenarios have resulted in. | |
bool | cancelled_ = false |
Whether this has been cancelled and should stop computing. | |
Represents a full set of simulations using all available weather streams.
|
explicitnoexcept |
Constructor.
scenarios | List of Scenarios to wrap into Iteration |
|
default |
Copy constructor.
rhs | Iteration to copy form |
|
default |
Move constructor.
rhs | Iteration to move from |
|
noexcept |
Mark as cancelled so it stops computing on next event.
Whether | to log a warning about this being cancelled |
|
nodiscard |
SafeVector of sizes that Scenarios have resulted in.
|
inlinenodiscardnoexcept |
Iteration * fs::sim::Iteration::reset | ( | mt19937 * | mt_extinction, |
mt19937 * | mt_spread ) |
Create new thresholds for use in each Scenario.
mt_extinction | Extinction thresholds |
mt_spread | Spread thresholds |
Iteration * fs::sim::Iteration::reset_with_new_start | ( | const shared_ptr< topo::Cell > & | start_cell | ) |
Assign start Cell and create new thresholds for use in each Scenario.
start_cell | Cell to start ignition in |
|
nodiscard |
Points in time that ProbabilityMaps get saved for.
|
nodiscardnoexcept |
|
nodiscard |
Time that simulations start.