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

#include <oldbInterface.hpp>

Inheritance diagram for hlcc::trksim::OldbInterface:
OldbInterfaceDummy OldbInterfaceDummy OldbInterfaceDummy OldbInterfaceDummy

Public Member Functions

 OldbInterface (const std::string &prefix="")
 
virtual ~OldbInterface ()
 
void Init (::hlcc::trksim::Config &config)
 
void PublishTargets (ElapsedTimeStats &stats)
 
void PublishCurrentPositions (ElapsedTimeStats &stats, const bool &radec_validity, taiclock::TaiClock::time_point timestamp)
 
ptk::HorizonPositionEsoTimestamped GetCurrentObservedAltAz ()
 
void SetConfig (hlcc::trksim::Config &cfg)
 
void SetControlState (const std::string &value, const taiclock::TaiClock::time_point &timestamp, ElapsedTimeStats &stats)
 
void SetTrackingState (const std::string &value, const taiclock::TaiClock::time_point &timestamp, ElapsedTimeStats &stats)
 
void SetConfig (const rad::Config &cfg)
 
void SetControlState (const std::string &value)
 
AsmData ReadAsm ()
 
void UpdateHeartbeat ()
 
 OldbInterface (const OldbInterface &)=delete
 
OldbInterfaceoperator= (const OldbInterface &)=delete
 Disable copy constructor.
 
OldbDataGetOldbData ()
 Disable assignment operator.
 

Detailed Description

This class is the interface to the CII OLDB.

Constructor & Destructor Documentation

◆ OldbInterface() [1/2]

hlcc::trksim::OldbInterface::OldbInterface ( const std::string & prefix = "")

Constructor.

Parameters
[in]prefixString used as prefix when building the keys. Typically prefix will be set by Application::Init calling rad::OldbInterface::SetPrefix.

◆ ~OldbInterface()

hlcc::trksim::OldbInterface::~OldbInterface ( )
virtual

Destructor

◆ OldbInterface() [2/2]

hlcc::trksim::OldbInterface::OldbInterface ( const OldbInterface & )
delete

Member Function Documentation

◆ GetCurrentObservedAltAz()

HorizonPositionEsoTimestamped hlcc::trksim::OldbInterface::GetCurrentObservedAltAz ( )

Publishes current_time. Probably an eltpk task. Retrieves the current observed (alt,az) position and returns it as an HorizonPositionEso

◆ GetOldbData()

OldbData & hlcc::trksim::OldbInterface::GetOldbData ( )

Disable assignment operator.

◆ Init()

void hlcc::trksim::OldbInterface::Init ( ::hlcc::trksim::Config & config)

Creates an ObservablePublisher for pub/sub and OLDB publishing. Initializes OLDB datapoints (target_alt_az) and publishers (target_alt_az_publisher).

◆ operator=()

OldbInterface & hlcc::trksim::OldbInterface::operator= ( const OldbInterface & )
delete

Disable copy constructor.

◆ PublishCurrentPositions()

void hlcc::trksim::OldbInterface::PublishCurrentPositions ( ElapsedTimeStats & stats,
const bool & radec_validity,
taiclock::TaiClock::time_point timestamp )

Publishes all current positions (currently current_alt_az, tracking_data).

◆ PublishTargets()

void hlcc::trksim::OldbInterface::PublishTargets ( ElapsedTimeStats & stats)

Publishes all target coordinates (currently only ALT-AZ target).

◆ ReadAsm()

AsmData hlcc::trksim::OldbInterface::ReadAsm ( )

Read site information published by Astronomical site monitor

Returns
AsmData struct, containing site data

◆ SetConfig() [1/2]

void hlcc::trksim::OldbInterface::SetConfig ( const rad::Config & cfg)

◆ SetConfig() [2/2]

void hlcc::trksim::OldbInterface::SetConfig ( hlcc::trksim::Config & cfg)

Will call the base class SetConfig method, and will also write to OLDB all config values specific to this module.

◆ SetControlState() [1/2]

void hlcc::trksim::OldbInterface::SetControlState ( const std::string & value)

◆ SetControlState() [2/2]

void hlcc::trksim::OldbInterface::SetControlState ( const std::string & value,
const taiclock::TaiClock::time_point & timestamp,
ElapsedTimeStats & stats )

We do not use the base class method void SetControlState(const std::string& value) because writing control state to OLDB is done frequently, and we want to use CiiOldbDataPointAsync and also keep the option to evaluate ElapsedTimeStats.

◆ SetTrackingState()

void hlcc::trksim::OldbInterface::SetTrackingState ( const std::string & value,
const taiclock::TaiClock::time_point & timestamp,
ElapsedTimeStats & stats )

Sets the LSV tracking state, which is separate from the application/control state.

◆ UpdateHeartbeat()

void hlcc::trksim::OldbInterface::UpdateHeartbeat ( )

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