12#ifndef RTCTK_TELSUB_BUSINESSLOGIC_HPP
13#define RTCTK_TELSUB_BUSINESSLOGIC_HPP
39std::ostream&
operator<<(std::ostream& stream,
const std::vector<std::string>& data);
98 value =
m_rtr.GetDataPoint<T>(fullpath);
99 LOG4CPLUS_INFO(
m_logger,
" - " << fullpath <<
": " << value);
107 template <
typename T>
113 LOG4CPLUS_INFO(
m_logger,
" - " << fullpath <<
": " << value);
121 auto [datapoints, children] =
m_rtr.GetChildren(fullpath);
128 std::optional<numapp::NumaPolicies>
Alert Service interface.
Definition alertServiceIf.hpp:138
Component metrics interface.
Definition componentMetricsIf.hpp:164
This class provides a wrapper for a data point path.
Definition dataPointPath.hpp:77
Base interface for all Runtime Configuration Repository adapters.
Definition runtimeRepoIf.hpp:27
Container class that holds services of any type.
Definition serviceContainer.hpp:39
std::function< std::unique_ptr< OperationalLogicIf >(const OperationalLogicFactoryParams &)> OperationalLogicFactory
Definition businessLogic.hpp:69
std::vector< DataPointPath > GetTopicPaths()
Definition businessLogic.hpp:118
BusinessLogic(const std::string &name, componentFramework::ServiceContainer &services, OperationalLogicFactory factory)
Definition businessLogic.cpp:43
rtctk::componentFramework::AlertServiceIf & m_alerts
Definition businessLogic.hpp:135
bool GuardUpdatingAllowed(const componentFramework::JsonPayload &args) override
Definition businessLogic.cpp:248
void ActivityGoingRunning(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:213
std::unique_ptr< OperationalLogicIf > m_operational_logic
Operational logic constructed during Initialization with parameters from configuration.
Definition businessLogic.hpp:139
void ActivityStarting(componentFramework::StopToken st) override
Deletes the operational logic if the object exists.
Definition businessLogic.cpp:64
void ActionClearAlerts() override
Definition businessLogic.cpp:253
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:95
void ActivityGoingIdle(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:223
void ActivityInitialising(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:77
LifeCycle ComponentType
Definition businessLogic.hpp:67
rtctk::componentFramework::RuntimeRepoIf & m_rtr
Definition businessLogic.hpp:131
log4cplus::Logger & m_logger
Definition businessLogic.hpp:88
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:108
void ActivityEnabling(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:195
void ActivityRunning(componentFramework::StopToken st) override
TBC if we have anything to do here.
Definition businessLogic.cpp:231
rtctk::componentFramework::ComponentMetricsIf & m_metrics
Definition businessLogic.hpp:133
void ActivityDisabling(componentFramework::StopToken st) override
Main tasks:
Definition businessLogic.cpp:205
void ActivityUpdating(componentFramework::StopToken st, const componentFramework::JsonPayload &args) override
TBD what, if anything can be updated?
Definition businessLogic.cpp:243
OperationalLogicFactory m_operational_logic_factory
Definition businessLogic.hpp:137
std::optional< numapp::NumaPolicies > LoadNumaPolicies(const rtctk::componentFramework::DataPointPath &path)
Helper method that builds full path and logs loaded configuration.
Definition businessLogic.cpp:258
std::string m_name
Definition businessLogic.hpp:89
Header file for DataPointPath.
Logging Support Library based on log4cplus.
Definition commandReplier.cpp:22
rad::StopToken StopToken
Definition stopToken.hpp:20
bool GetOptionalParam(RepositoryIf &repo, const DataPointPath &path, T &value)
Get optional datapoint.
Definition repositoryIfUtils.hpp:40
nlohmann::json JsonPayload
Type requirements:
Definition jsonPayload.hpp:25
std::ostream & operator<<(std::ostream &out, const DataPointPath &rhs)
Definition dataPointPath.hpp:450
rtctk::componentFramework::Runnable< rtctk::componentFramework::RtcComponent > LifeCycle
Definition businessLogic.hpp:57
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:31
Placeholder for correlator parameters.
Definition correlatorIf.hpp:43
Parameter set to be passed to classes deriving from DdsWaitSetIf.
Definition ddsWaitSetIf.hpp:50
Set of all parameters needed when constructing the OperationalLogic object.
Definition businessLogic.hpp:50
DdsParams dds_params
Definition businessLogic.hpp:52
ShmParams shm_params
Definition businessLogic.hpp:51
OperationalParams operational_params
Definition businessLogic.hpp:54
CorrelatorParams correlator_params
Definition businessLogic.hpp:53
Configuration parameters needed for operational logic.
Definition operationalLogicIf.hpp:54
Shared memory configuration parameters.
Definition operationalLogicIf.hpp:36