#include <loopStateData.hpp>
Public Member Functions | |
| LoopStateData (int loop_index, OldbInterface &oldb) | |
| void | SetActive (bool active) |
| void | SetState (LoopState state) |
| LoopState | GetState () const |
| void | CycleUpdate () |
| void | CycleExec () |
| void | CycleReset () |
| void | SetFail (bool failed) |
| int | GetNumErrors () const |
| void | SetLastError (const std::string &message) |
| void | IncrementSuccess () |
| void | SetValue (double value) |
| double | GetValue () const |
| bool | CheckStop (int max_errors) const |
Manages per-loop runtime state in OLDB. Provides methods to read/write state attributes matching legacy AOO format.
| ifw::slm::LoopStateData::LoopStateData | ( | int | loop_index, |
| OldbInterface & | oldb ) |
| bool ifw::slm::LoopStateData::CheckStop | ( | int | max_errors | ) | const |
| void ifw::slm::LoopStateData::CycleExec | ( | ) |
| void ifw::slm::LoopStateData::CycleReset | ( | ) |
| void ifw::slm::LoopStateData::CycleUpdate | ( | ) |
| int ifw::slm::LoopStateData::GetNumErrors | ( | ) | const |
| LoopState ifw::slm::LoopStateData::GetState | ( | ) | const |
| double ifw::slm::LoopStateData::GetValue | ( | ) | const |
| void ifw::slm::LoopStateData::IncrementSuccess | ( | ) |
Increment the count of successful executions since the loop started (OLDB key cycle_nsuccess). Reset by CycleReset().
| void ifw::slm::LoopStateData::SetActive | ( | bool | active | ) |
| void ifw::slm::LoopStateData::SetFail | ( | bool | failed | ) |
| void ifw::slm::LoopStateData::SetLastError | ( | const std::string & | message | ) |
Record a human-readable description of the last cycle error in OLDB (key cycle_last_error). Pass an empty string to clear it on success.
| void ifw::slm::LoopStateData::SetState | ( | LoopState | state | ) |
| void ifw::slm::LoopStateData::SetValue | ( | double | value | ) |