|
opm-common
|
Management information about the current run's ACTION system, especially concerning the number of times each action has triggered/run and the last time it was run. More...
#include <State.hpp>
Classes | |
| class | MatchSet |
| Matching entities from a successfully triggered ActionX object. More... | |
Public Member Functions | |
| void | add_run (const ActionX &action, std::time_t sim_time, const Result &result) |
| Record ActionX Run. More... | |
| void | add_run (const PyAction &action, bool result) |
| Record PyAction Run. More... | |
| std::size_t | run_count (const ActionX &action) const |
| Retrieve number of times an action has run. More... | |
| std::time_t | run_time (const ActionX &action) const |
| Retrieve timestamp of the last time an action ran. More... | |
| const MatchSet * | result (const std::string &action) const |
| Retrieve set of matching entities from the last time an action ran. More... | |
| std::optional< bool > | python_result (const std::string &action) const |
| Query for the result of running a PyAction. More... | |
| void | load_rst (const Actions &action_config, const RestartIO::RstState &rst_state) |
| Load action state from restart file. More... | |
| template<class Serializer > | |
| void | serializeOp (Serializer &serializer) |
| Convert between byte array and object representation. More... | |
| bool | operator== (const State &other) const |
| Equality predicate. More... | |
Static Public Member Functions | |
| static State | serializationTestObject () |
| Create a serialisation test object. | |
Management information about the current run's ACTION system, especially concerning the number of times each action has triggered/run and the last time it was run.
| void Opm::Action::State::add_run | ( | const PyAction & | action, |
| bool | result | ||
| ) |
| void Opm::Action::State::load_rst | ( | const Actions & | action_config, |
| const RestartIO::RstState & | rst_state | ||
| ) |
| bool Opm::Action::State::operator== | ( | const State & | other | ) | const |
Equality predicate.
| [in] | other | Object against which *this |
other. | std::optional< bool > Opm::Action::State::python_result | ( | const std::string & | action | ) | const |
| const Opm::Action::State::MatchSet * Opm::Action::State::result | ( | const std::string & | action | ) | const |
Retrieve set of matching entities from the last time an action ran.
| [in] | action | Action name. |
| std::size_t Opm::Action::State::run_count | ( | const ActionX & | action | ) | const |
Retrieve number of times an action has run.
| [in] | action | Action object. |
action has run. | std::time_t Opm::Action::State::run_time | ( | const ActionX & | action | ) | const |
Retrieve timestamp of the last time an action ran.
Will throw an exception of type std::invalid_argument if the action has never run, i.e., if
.
| [in] | action | Action object. |
action's last execution.
|
inline |
Convert between byte array and object representation.
| Serializer | Byte array conversion protocol. |
| [in,out] | serializer | Byte array conversion object. |