|
HLCC Documentation 3.0.1
|
#include <oldbInterface.hpp>
Public Member Functions | |
| OldbInterface (const std::string &prefix="") | |
| virtual | ~OldbInterface () |
| void | Init (::hlcc::telif::Config &config) |
| void | PublishObservingWavelength (double wavelength) |
| void | PublishSetVelocityOffset (const std::shared_ptr<::ccsinsif::VelocityOffset > &velocity_offset_args) |
| bool | GetReadyForHandover () |
| bool | GetTracking () |
| bool | GetTargetValidity () |
| std::string | GetEltpkState () |
| std::string | GetCommandSource () |
| void | PublishCommandSource (const std::string &) |
| double | GetSiteLatitude () |
| double | GetSiteLongitude () |
| double | GetSiteElevation () |
| void | PublishExtrefInsRef () |
| void | PublishStrokeRous (const std::shared_ptr<::ccsinsif::rous::Maneuver > &) |
| void | PublishAoMirrorHealth (const std::shared_ptr<::ccsinsif::ao::Health > &) |
| void | PublishCcsInfo () |
| std::shared_ptr<::ccsinsif::insref::Offsets > | GetInsrefOffset () |
| std::shared_ptr<::ccsinsif::CcsInfo > | GetCcsInfoEntity () |
| void | SetConfig (const hlcc::telif::Config &cfg) |
| std::string | GetControlState () |
| void | SetControlState (const std::string &status) override |
| void | SetConfig (const rad::Config &cfg) |
| void | PublishPresetSequenceMode (const telifif::SequenceMode &sequence_mode) |
| telifif::SequenceMode | ReadPresetSequenceMode () |
| void | PublishPresetSequence (const std::string &sequence) |
| std::string | ReadPresetSequence () |
| void | PublishUpdateTargetSequenceMode (const telifif::SequenceMode &sequence_mode) |
| telifif::SequenceMode | ReadUpdateTargetSequenceMode () |
| void | PublishUpdateTargetSequence (const std::string &sequence) |
| std::string | ReadUpdateTargetSequence () |
| std::string | ReadUpdateTargetSequenceStatus () |
| void | PublishUpdateTargetSequenceStatus (const std::string &sequence) |
| void | PublishOffsetSequenceMode (const telifif::SequenceMode &sequence_mode) |
| telifif::SequenceMode | ReadOffsetSequenceMode () |
| void | PublishOffsetSequence (const std::string &sequence) |
| std::string | ReadOffsetSequence () |
| void | PublishMessageOffsetSequence (uint16_t id, std::string message) |
| std::vector< std::shared_ptr< telifif::SeqMessage > > | ReadMessageOffsetSequence () |
| std::string | WriteGuideProbeToOldb (std::shared_ptr< pfsif::GuideStarArgs > gp_args) |
| TrexData | GetTrexData () |
| std::vector< std::string > | GetGsToGpMap () |
| void | SetGsToGpMap (const std::vector< std::string > &gs_gp_map) |
| void | UpdateHeartbeat () |
| void | PublishPerfEstimate (std::vector< double > perf_data) |
| void | SetOperatorAllowsHandover (bool operator_allows_handover) |
| OldbInterface (const OldbInterface &)=delete | |
| OldbInterface & | operator= (const OldbInterface &)=delete |
| Disable copy constructor. | |
This class is the interface to the CII OLDB.
| hlcc::telif::OldbInterface::OldbInterface | ( | const std::string & | prefix = "" | ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. |
|
virtual |
Destructor
|
delete |
|
inline |
| std::string hlcc::telif::OldbInterface::GetCommandSource | ( | ) |
Reads the command_source from the Oldb
| std::string hlcc::telif::OldbInterface::GetControlState | ( | ) |
Reads the application current state from the oldb
| std::string hlcc::telif::OldbInterface::GetEltpkState | ( | ) |
Reads the current value of ready_for_handover flag on the Oldb
| std::vector< std::string > hlcc::telif::OldbInterface::GetGsToGpMap | ( | ) |
Gets GsToGpMap from oldb
|
inline |
| bool hlcc::telif::OldbInterface::GetReadyForHandover | ( | ) |
Reads the current value of ready_for_handover flag on the Oldb
| double hlcc::telif::OldbInterface::GetSiteElevation | ( | ) |
Reads the Site Elevation from Oldb
| std::runtime_error | when it fails to get the Elevation. |
| double hlcc::telif::OldbInterface::GetSiteLatitude | ( | ) |
Reads the Site Latitude from Oldb
| std::runtime_error | when it fails to get the Latitude. |
| double hlcc::telif::OldbInterface::GetSiteLongitude | ( | ) |
Reads the Site Longitude from Oldb
| std::runtime_error | when it fails to get the Longitude. |
| bool hlcc::telif::OldbInterface::GetTargetValidity | ( | ) |
Checks the target validity based on target position_radec Oldb dp quality
| bool hlcc::telif::OldbInterface::GetTracking | ( | ) |
Reads the current value of tracking flag on the Oldb
| TrexData hlcc::telif::OldbInterface::GetTrexData | ( | ) |
Gets m_oldb_data
| void hlcc::telif::OldbInterface::Init | ( | ::hlcc::telif::Config & | config | ) |
Creates an ObservablePublisher for pub/sub and OLDB publishing. Initializes OLDB datapoints (target_alt_az) and publishers (target_alt_az_publisher).
|
delete |
Disable copy constructor.
| void hlcc::telif::OldbInterface::PublishAoMirrorHealth | ( | const std::shared_ptr<::ccsinsif::ao::Health > & | x | ) |
Publishes AO mirror health
| void hlcc::telif::OldbInterface::PublishCcsInfo | ( | ) |
Publishes Ccs Info
| void hlcc::telif::OldbInterface::PublishCommandSource | ( | const std::string & | command_source | ) |
Publishes the command_source in the Oldb
| void hlcc::telif::OldbInterface::PublishExtrefInsRef | ( | ) |
Publishes external references to CCS
| void hlcc::telif::OldbInterface::PublishMessageOffsetSequence | ( | uint16_t | id, |
| std::string | message ) |
Publishes message for Offset sequence
| void hlcc::telif::OldbInterface::PublishObservingWavelength | ( | double | wavelength | ) |
Publishes the received SetObservingWavelength, upon request
| std::runtime_error | if not successful. |
| void hlcc::telif::OldbInterface::PublishOffsetSequence | ( | const std::string & | sequence | ) |
Publish Offset sequence
| [in] | sequence | String name of sequence module |
| void hlcc::telif::OldbInterface::PublishOffsetSequenceMode | ( | const telifif::SequenceMode & | sequence_mode | ) |
Publish Offset Mode
| [in] | sequence_mode | String with the mode |
| void hlcc::telif::OldbInterface::PublishPerfEstimate | ( | std::vector< double > | perf_data | ) |
| void hlcc::telif::OldbInterface::PublishPresetSequence | ( | const std::string & | sequence | ) |
Publish preset sequence
| [in] | sequence | String name of sequence module |
| void hlcc::telif::OldbInterface::PublishPresetSequenceMode | ( | const telifif::SequenceMode & | sequence_mode | ) |
Publish Preset Mode
| [in] | sequence_mode | String with the mode |
| void hlcc::telif::OldbInterface::PublishSetVelocityOffset | ( | const std::shared_ptr<::ccsinsif::VelocityOffset > & | velocity_offset_args | ) |
Publishes the received velocity_offset_args, upon request
| std::runtime_error | if not successful. |
| void hlcc::telif::OldbInterface::PublishStrokeRous | ( | const std::shared_ptr<::ccsinsif::rous::Maneuver > & | x | ) |
Publishes stroke management
| void hlcc::telif::OldbInterface::PublishUpdateTargetSequence | ( | const std::string & | sequence | ) |
Publish UpdateTarget sequence
| [in] | sequence | String name of sequence module |
| void hlcc::telif::OldbInterface::PublishUpdateTargetSequenceMode | ( | const telifif::SequenceMode & | sequence_mode | ) |
Publish UpdateTarget Mode
| [in] | sequence_mode | String with the mode |
| void hlcc::telif::OldbInterface::PublishUpdateTargetSequenceStatus | ( | const std::string & | sequence | ) |
Publish UpdateTarget sequence status
| [in] | sequence | String name of sequence module |
| std::vector< std::shared_ptr< telifif::SeqMessage > > hlcc::telif::OldbInterface::ReadMessageOffsetSequence | ( | ) |
Reads to messages from Offset sequence
| std::string hlcc::telif::OldbInterface::ReadOffsetSequence | ( | ) |
Read from Oldb Offset sequence
| std::runtime_error | if not possible to read |
| telifif::SequenceMode hlcc::telif::OldbInterface::ReadOffsetSequenceMode | ( | ) |
Read from Oldb Offset Mode
| std::runtime_error | if not possible to read or value read not valid |
| std::string hlcc::telif::OldbInterface::ReadPresetSequence | ( | ) |
Read from Oldb Preset sequence
| std::runtime_error | if not possible to read |
| telifif::SequenceMode hlcc::telif::OldbInterface::ReadPresetSequenceMode | ( | ) |
Read from Oldb Preset Mode
| std::runtime_error | if not possible to read or value read not valid |
| std::string hlcc::telif::OldbInterface::ReadUpdateTargetSequence | ( | ) |
Read from Oldb UpdateTarget sequence
| std::runtime_error | if not possible to read |
| telifif::SequenceMode hlcc::telif::OldbInterface::ReadUpdateTargetSequenceMode | ( | ) |
Read from Oldb UpdateTarget Mode
| std::runtime_error | if not possible to read or value read not valid |
| std::string hlcc::telif::OldbInterface::ReadUpdateTargetSequenceStatus | ( | ) |
Read from Oldb UpdateTarget sequence status
| std::runtime_error | if not possible to read |
| void hlcc::telif::OldbInterface::SetConfig | ( | const hlcc::telif::Config & | cfg | ) |
| void hlcc::telif::OldbInterface::SetConfig | ( | const rad::Config & | cfg | ) |
|
override |
Publishes application current state in the Oldb
| void hlcc::telif::OldbInterface::SetGsToGpMap | ( | const std::vector< std::string > & | gs_gp_map | ) |
Sets GsToGpMap in oldb
| void hlcc::telif::OldbInterface::SetOperatorAllowsHandover | ( | bool | operator_allows_handover | ) |
| void hlcc::telif::OldbInterface::UpdateHeartbeat | ( | ) |
| std::string hlcc::telif::OldbInterface::WriteGuideProbeToOldb | ( | std::shared_ptr< pfsif::GuideStarArgs > | gp_args | ) |
Sets Guide Probe oldb data points