#include <activityDoEstimation.hpp>
◆ ActivityDoEstimation() [1/2]
| hlcc::eltpk::ActivityDoEstimation::ActivityDoEstimation |
( |
const std::string & | id, |
|
|
rad::SMAdapter & | sm, |
|
|
DataContext & | data ) |
◆ ~ActivityDoEstimation()
| hlcc::eltpk::ActivityDoEstimation::~ActivityDoEstimation |
( |
| ) |
|
|
virtual |
◆ ActivityDoEstimation() [2/2]
◆ CheckRefreshExternalAsync()
| void hlcc::eltpk::ActivityDoEstimation::CheckRefreshExternalAsync |
( |
taiclock::TaiClock::time_point | time_loop | ) |
|
Disable assignment operator.
TODO: eltpk may not need this any more, now that simulation has moved to trksim.
Updates temperature, pressure etc from the ASM in the background, see ETCS-1324. In the future may also update other externally supplied values.
The update happens in the background, and only if the supplied time_loop is at least 10 s past the previous data retrieval time (see m_last_refresh_external).
TODO: Discuss if we want to use a separate activity, possibly in its own SM parallel region. Or have the background thread managed by DataContext. The current solution is "quick and basic", with a local background thread located here in class ActivityDoEstimation that is also the main customer of ASM data.
◆ Configure()
| void hlcc::eltpk::ActivityDoEstimation::Configure |
( |
const std::vector< std::string > & | keys | ) |
|
|
override |
Method invoked when SetConfig or LoadConfig command is received to re-configure this class attributes.
- Parameters
-
| keys | Modified parameters. Empty vector means all params have changed. |
◆ Initialize()
| void hlcc::eltpk::ActivityDoEstimation::Initialize |
( |
| ) |
|
|
override |
Method invoked when Init command is received to re-initialize this class attributes.
◆ operator=()
Disable copy constructor.
◆ Run()
| void hlcc::eltpk::ActivityDoEstimation::Run |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: