RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
businessLogic.hpp
Go to the documentation of this file.
1
13#ifndef RTCTK_EXAMPLEDATATASK_MEASURETEL_BUSINESSLOGIC_HPP
14#define RTCTK_EXAMPLEDATATASK_MEASURETEL_BUSINESSLOGIC_HPP
15
16#include "computation.hpp"
17
21
22namespace rtctk::exampleDataTask {
23
24using namespace rtctk::componentFramework;
25
27
28class BusinessLogic : public LifeCycle::BizLogicIf, public Computation::ResultIf {
29public:
31
32 BusinessLogic(const std::string& name, ServiceContainer& services);
33
39
40private:
41 void OnResultAvailable(const Computation::Result& result) override;
42 Computation::Algorithm ParseAlgorithm(const JsonPayload& arg);
43
44 // used services
45 ServiceContainer& m_services;
46 RuntimeRepoIf& m_rtr;
47
48 // rtr datapoints
49 DataPointPath m_dp_queue_name;
50 DataPointPath m_dp_thread_policies;
51 DataPointPath m_dp_samples_to_read;
52 DataPointPath m_dp_sample_timeout;
53 DataPointPath m_dp_result;
54
55 std::unique_ptr<Computation> m_computation;
56};
57
58} // namespace rtctk::exampleDataTask
59
60#endif // RTCTK_EXAMPLEDATATASK_MEASURETEL_BUSINESSLOGIC_HPP
Definition main.cpp:25
This class provides a wrapper for a data point path.
Definition dataPointPath.hpp:74
Base interface for all Runtime Configuration Repository adapters.
Definition runtimeRepoIf.hpp:27
Container class that holds services of any type.
Definition serviceContainer.hpp:39
void ActivityEnabling(StopToken st) override
void ActivityInitialising(StopToken st) override
void ActivityDisabling(StopToken st) override
JsonPayload ActivityMeasuring(StopToken st, const JsonPayload &arg) override
Definition businessLogic.cpp:69
void ActivityUpdating(StopToken st, const JsonPayload &args) override
BusinessLogic(const std::string &name, ServiceContainer &services)
Algorithm
Definition computation.hpp:37
Lifecycle Extension that makes an RTC Component 'Measurable'.
Computation of the Data Task.
Definition commandReplier.cpp:22
rad::StopToken StopToken
Definition stopToken.hpp:20
nlohmann::json JsonPayload
Type requirements:
Definition jsonPayload.hpp:25
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Definition businessLogic.cpp:27
Runnable< RtcComponent > LifeCycle
Definition businessLogic.hpp:27
Lifecycle of a basic 'RtcComponent'.
Header file for RuntimeRepoIf, which defines the API for RuntimeRepoAdapters.
Life cycle extension to make RtcComponent Measurable.
Definition measurable.hpp:151
Basic life cycle for RtcComponent.
Definition rtcComponent.hpp:74
Life cycle extension to make RtcComponent Runnable.
Definition runnable.hpp:31
Definition computation.hpp:43