11#ifndef RTCTK_TELSUB_BUSINESSLOGIC_HPP
12#define RTCTK_TELSUB_BUSINESSLOGIC_HPP
38std::ostream&
operator<<(std::ostream& stream,
const std::vector<std::string>& data);
97 value =
m_rtr.GetDataPoint<T>(fullpath);
98 LOG4CPLUS_INFO(
m_logger,
" - " << fullpath <<
": " << value);
106 template <
typename T>
112 LOG4CPLUS_INFO(
m_logger,
" - " << fullpath <<
": " << value);
120 auto [datapoints, children] =
m_rtr.GetChildren(fullpath);
127 std::optional<numapp::NumaPolicies>
Alert Service interface.
Definition alertServiceIf.hpp:138
Component metrics interface.
Definition componentMetricsIf.hpp:163
This class provides a wrapper for a data point path.
Definition dataPointPath.hpp:76
Base interface for all Runtime Configuration Repository adapters.
Definition runtimeRepoIf.hpp:26
Container class that holds services of any type.
Definition serviceContainer.hpp:38
std::function< std::unique_ptr< OperationalLogicIf >(const OperationalLogicFactoryParams &)> OperationalLogicFactory
Definition businessLogic.hpp:68
std::vector< DataPointPath > GetTopicPaths()
Definition businessLogic.hpp:117
BusinessLogic(const std::string &name, componentFramework::ServiceContainer &services, OperationalLogicFactory factory)
Definition businessLogic.cpp:42
rtctk::componentFramework::AlertServiceIf & m_alerts
Definition businessLogic.hpp:134
bool GuardUpdatingAllowed(const componentFramework::JsonPayload &args) override
Definition businessLogic.cpp:247
void ActivityGoingRunning(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:212
std::unique_ptr< OperationalLogicIf > m_operational_logic
Operational logic constructed during Initialization with parameters from configuration.
Definition businessLogic.hpp:138
void ActivityStarting(componentFramework::StopToken st) override
Deletes the operational logic if the object exists.
Definition businessLogic.cpp:63
void ActionClearAlerts() override
Definition businessLogic.cpp:252
void GetParam(const rtctk::componentFramework::DataPointPath &path, T &value)
Helper method to fetch and log datapoint values loaded from the Runtime Repository.
Definition businessLogic.hpp:94
void ActivityGoingIdle(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:222
void ActivityInitialising(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:76
LifeCycle ComponentType
Definition businessLogic.hpp:66
rtctk::componentFramework::RuntimeRepoIf & m_rtr
Definition businessLogic.hpp:130
log4cplus::Logger & m_logger
Definition businessLogic.hpp:87
bool GetOptionalParam(const rtctk::componentFramework::DataPointPath &path, T &value)
Helper method similar to GetParam, except no exceptions are thrown if the path does not exit and the ...
Definition businessLogic.hpp:107
void ActivityEnabling(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:194
void ActivityRunning(componentFramework::StopToken st) override
TBC if we have anything to do here.
Definition businessLogic.cpp:230
rtctk::componentFramework::ComponentMetricsIf & m_metrics
Definition businessLogic.hpp:132
void ActivityDisabling(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:204
void ActivityUpdating(componentFramework::StopToken st, const componentFramework::JsonPayload &args) override
TBD what, if anything can be updated?
Definition businessLogic.cpp:242
OperationalLogicFactory m_operational_logic_factory
Definition businessLogic.hpp:136
std::optional< numapp::NumaPolicies > LoadNumaPolicies(const rtctk::componentFramework::DataPointPath &path)
Helper method that builds full path and logs loaded configuration.
Definition businessLogic.cpp:257
std::string m_name
Definition businessLogic.hpp:88
Header file for DataPointPath.
bool GetOptionalParam(RepositoryIf &repo, const DataPointPath &path, T &value)
Get optional datapoint.
Definition repositoryIfUtils.hpp:39
Logging Support Library based on log4cplus.
Definition commandReplier.cpp:21
rad::StopToken StopToken
Definition stopToken.hpp:19
nlohmann::json JsonPayload
Type requirements:
Definition jsonPayload.hpp:24
std::ostream & operator<<(std::ostream &out, const DataPointPath &rhs)
Definition dataPointPath.hpp:449
rtctk::componentFramework::Runnable< rtctk::componentFramework::RtcComponent > LifeCycle
Definition businessLogic.hpp:56
Declares OperationalLogic.
Provides utilities to simplify use of RepositoryIf.
Lifecycle Extension that makes an RTC Component 'Runnable'.
Header file for RuntimeRepoIf, which defines the API for RuntimeRepoAdapters.
A container that can hold any type of service.
Life cycle extension to make RtcComponent Runnable.
Definition runnable.hpp:30
Placeholder for correlator parameters.
Definition correlatorIf.hpp:42
Parameter set to be passed to classes deriving from DdsWaitSetIf.
Definition ddsWaitSetIf.hpp:49
Set of all parameters needed when constructing the OperationalLogic object.
Definition businessLogic.hpp:49
DdsParams dds_params
Definition businessLogic.hpp:51
ShmParams shm_params
Definition businessLogic.hpp:50
OperationalParams operational_params
Definition businessLogic.hpp:53
CorrelatorParams correlator_params
Definition businessLogic.hpp:52
Configuration parameters needed for operational logic.
Definition operationalLogicIf.hpp:53
Shared memory configuration parameters.
Definition operationalLogicIf.hpp:35