HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hlcc::eltpk::ActivityDoEstimation Class Reference

#include <activityDoEstimation.hpp>

Inheritance diagram for hlcc::eltpk::ActivityDoEstimation:

Public Member Functions

 ActivityDoEstimation (const std::string &id, rad::SMAdapter &sm, DataContext &data)
 
virtual ~ActivityDoEstimation ()
 
void Run () override
 
void Initialize () override
 
void Configure (const std::vector< std::string > &keys) override
 
 ActivityDoEstimation (const ActivityDoEstimation &)=delete
 
ActivityDoEstimationoperator= (const ActivityDoEstimation &)=delete
 Disable copy constructor.
 
void CheckRefreshExternalAsync (taiclock::TaiClock::time_point time_loop)
 Disable assignment operator.
 

Constructor & Destructor Documentation

◆ 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]

hlcc::eltpk::ActivityDoEstimation::ActivityDoEstimation ( const ActivityDoEstimation & )
delete

Member Function Documentation

◆ 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
keysModified 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=()

ActivityDoEstimation & hlcc::eltpk::ActivityDoEstimation::operator= ( const ActivityDoEstimation & )
delete

Disable copy constructor.

◆ Run()

void hlcc::eltpk::ActivityDoEstimation::Run ( )
override

The documentation for this class was generated from the following files: