Ref T515, retrieve last validation results in distributed swift setup

This commit is contained in:
Klaus Basan
2019-01-25 12:31:55 +01:00
committed by Mat Sutcliffe
parent 9623b7a1da
commit 998f0344fa
4 changed files with 83 additions and 9 deletions

View File

@@ -64,6 +64,11 @@ namespace BlackMisc
//! \threadsafe
bool triggerValidation(const CSimulatorInfo &simulator);
//! Request last results (again), if there are any
//! \remark emits CBackgroundValidation::validated signal
//! \threadsafe
bool requestLastResults();
signals:
//! Validating
void validating(bool running);
@@ -75,8 +80,16 @@ namespace BlackMisc
mutable QReadWriteLock m_lock; //!< lock snapshot
std::atomic_bool m_inWork { false }; //!< indicates a running update
CSimulatorInfo m_simulator;
QMap<CSimulatorInfo, CStatusMessageList> m_checkedSimulatorMsgs;
CSetting<Settings::TModelMatching> m_matchingSettings { this }; //!< settings
// last result values, mostly needed when running in the distributed swift system and we want to get the values
CAircraftModelList m_lastResultValid;
CAircraftModelList m_lastResultInvalid;
CSimulatorInfo m_lastResultSimulator;
CStatusMessageList m_lastResultMsgs;
bool m_lastResultWasStopped = false;
QMap<CSimulatorInfo, CStatusMessageList> m_checkedSimulatorMsgs; //!< all simulators ever checked
CSetting<Settings::TModelMatching> m_matchingSettings { this }; //!< settings
// Set/caches as member as we are in own thread, central instance will not work
Data::CModelSetCaches m_modelSets { false, this };