|
ADS-IDAC Engine 5.0.0
|
#include <KB.h>
Public Attributes | |
| std::vector< std::unique_ptr< KBHardWiredUnit > > | hard_wired_diagnosis |
| std::vector< std::unique_ptr< KBSystemDecompositionUnit > > | system_decomposition |
| std::vector< std::unique_ptr< KBBiasFactorUnit > > | indicator_bias_factors |
| std::map< std::string, KBSystemDecompositionUnit * > | system_decomposition_map |
| std::map< int, std::string > | system_function_map |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Friends | |
| class | boost::serialization::access |
|
virtual |
| void KB::clearKB | ( | ) |
Definition at line 24 of file KB.cpp.
References hard_wired_diagnosis, indicator_bias_factors, system_decomposition, system_decomposition_map, and system_function_map.
Referenced by Operator::clearOperatorFinal(), Operator::clearOperatorFromRestartNodeInfoMultiProcessors(), Operator::seedKnowledgeBaseFromMaster(), and ~KB().
| void KB::clearKBForRestart | ( | ) |
Definition at line 309 of file KB.cpp.
References hard_wired_diagnosis, indicator_bias_factors, system_decomposition, system_decomposition_map, and system_function_map.
Referenced by Operator::clearOperatorForRestart(), and Operator::clearOperatorFromRestartInfo().
| void KB::copyKB | ( | KB & | _kb | ) |
Definition at line 287 of file KB.cpp.
References hard_wired_diagnosis, indicator_bias_factors, system_decomposition, system_decomposition_map, and system_function_map.
Referenced by Operator::copyOperatorFromRestartInfoMultiProcessor().
| void KB::copyKBForRestart | ( | KB & | _kb | ) |
Definition at line 265 of file KB.cpp.
References hard_wired_diagnosis, indicator_bias_factors, system_decomposition, system_decomposition_map, and system_function_map.
Referenced by Operator::copyOperatorFromRestartInfo(), Operator::copyOperatorToRestartInfo(), and Operator::seedKnowledgeBaseFromMaster().
| string KB::getAssociatedFunctionalDecompositionName | ( | int | _function_id | ) |
Definition at line 383 of file KB.cpp.
References r5pars_, and system_function_map.
Referenced by Operator::checkItemRelevanceToCurrentDiagnosis().
| double KB::getConfidenceLevelOfHWDiagnosis | ( | std::string | ) |
Definition at line 422 of file KB.cpp.
References hard_wired_diagnosis, and r5pars_.
| string KB::getProcedureNameOfHWDiagnosis | ( | std::string | ) |
Definition at line 334 of file KB.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, hard_wired_diagnosis, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().
Referenced by OperatorAT::infoChunking(), OperatorDM::infoChunking(), and OperatorDM::performRecoveryAction().
| KBHardWiredUnit * KB::getPtrToHardWiredDiagnosis | ( | std::string | ) |
Definition at line 400 of file KB.cpp.
References hard_wired_diagnosis, and r5pars_.
Referenced by OperatorDM::selectGoal().
| string KB::getStepNameOfHWDiagnosis | ( | std::string | ) |
Definition at line 358 of file KB.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, hard_wired_diagnosis, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().
Referenced by OperatorAT::infoChunking(), OperatorDM::infoChunking(), and OperatorDM::performRecoveryAction().
| void KB::initiationForSimulation | ( | int | _operator, |
| InfoChunk & | _perceived_info | ||
| ) |
Definition at line 32 of file KB.cpp.
References readHardWiredDiagnosis(), readIndicatorBiasFactors(), and readSystemDecompositionKB().
Referenced by Operator::initiationForSimulation().
| void KB::KBcalculateHardWiredConfidence | ( | ) |
Definition at line 329 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by OperatorAT::oneThroughProcessForBlockI(), and OperatorDM::oneThroughProcessForBlockI().
| void KB::KBcheckHardWiredMatchForAlarmState | ( | std::string | , |
| int | |||
| ) |
Definition at line 240 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void KB::KBcheckHardWiredMatchForComponentState | ( | std::string | , |
| int | |||
| ) |
Definition at line 245 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void KB::KBcheckHardWiredMatchForControl | ( | std::string | , |
| double | |||
| ) |
Definition at line 225 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void KB::KBcheckHardWiredMatchForMentalBelief | ( | std::string | , |
| int | |||
| ) |
Definition at line 230 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by Operator::checkAndActivateHWKB(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), and readHardWiredDiagnosis().
| void KB::KBcheckHardWiredMatchForParameterTrend | ( | std::string | , |
| int | |||
| ) |
Definition at line 260 of file KB.cpp.
References hard_wired_diagnosis.
| void KB::KBcheckHardWiredMatchForParameterValue | ( | std::string | , |
| double | , | ||
| int | |||
| ) |
Definition at line 255 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void KB::KBcheckHardWiredMatchForProcedureActivity | ( | std::string | , |
| int | |||
| ) |
Definition at line 235 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by ProcedureStep::executeInstinctiveResponseProcedureTransfer(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), ProcedureStep::oneThroughProcessForInstinctiveResponseProcedure(), and ProcedureStep::oneThroughProcessForProcedureStep().
| void KB::KBcheckHardWiredMatchForSupportSystemState | ( | std::string | , |
| int | |||
| ) |
Definition at line 250 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void KB::outputHardWiredDiagnosisLabelToFile | ( | std::string | , |
| std::ofstream & | |||
| ) |
Definition at line 316 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by KeyParameterHistoryUnit::outputLabelToFile().
| void KB::outputHardWiredDiagnosisUnitToFile | ( | std::ofstream & | ) |
Definition at line 324 of file KB.cpp.
References hard_wired_diagnosis.
Referenced by KeyParameterHistoryUnit::outputUnitToFile().
| void KB::readActionPack | ( | int | ) |
| void KB::readHardWiredDiagnosis | ( | int | _operator, |
| InfoChunk & | _perceived_info | ||
| ) |
Definition at line 40 of file KB.cpp.
References SimulationContext::Branch_center, g_sim, Scheduler::getOATDirectory(), Scheduler::getOCTDirectory(), Scheduler::getODMDirectory(), hard_wired_diagnosis, KBcheckHardWiredMatchForMentalBelief(), InfoChunk::mental_belief, NoKB, sim::None, sim::Operator::OAT, sim::Operator::OCT, sim::Operator::ODM, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and SimulationContext::SScheduler.
Referenced by initiationForSimulation().
| void KB::readIndicatorBiasFactors | ( | int | _operator | ) |
Definition at line 103 of file KB.cpp.
References SimulationContext::Branch_center, g_sim, Scheduler::getOATDirectory(), Scheduler::getOCTDirectory(), Scheduler::getODMDirectory(), indicator_bias_factors, NoKB, sim::Operator::OAT, sim::Operator::OCT, sim::Operator::ODM, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and SimulationContext::SScheduler.
Referenced by initiationForSimulation().
| void KB::readSystemDecompositionKB | ( | int | _operator | ) |
Definition at line 150 of file KB.cpp.
References SimulationContext::Branch_center, g_sim, KBElement::getInfoName(), Scheduler::getOATDirectory(), Scheduler::getOCTDirectory(), Scheduler::getODMDirectory(), NoKB, sim::Operator::OAT, sim::Operator::OCT, sim::Operator::ODM, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), SimulationContext::SScheduler, system_decomposition, system_decomposition_map, and system_function_map.
Referenced by initiationForSimulation().
| void KB::retrieveKBFromFile | ( | std::ifstream & | ) |
Definition at line 467 of file KB.cpp.
References SimulationContext::Branch_center, g_sim, hard_wired_diagnosis, indicator_bias_factors, NoKB, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), system_decomposition, system_decomposition_map, and system_function_map.
Referenced by Operator::retrieveOperatorFromFile().
| void KB::saveKBToFile | ( | std::ofstream & | ) |
Definition at line 444 of file KB.cpp.
References hard_wired_diagnosis, indicator_bias_factors, system_decomposition, and system_function_map.
Referenced by Operator::saveOperatorToFile().
|
inlineprivate |
Definition at line 93 of file KB.h.
References hard_wired_diagnosis, indicator_bias_factors, system_decomposition, system_decomposition_map, and system_function_map.
| void KB::state_load | ( | boost::archive::binary_iarchive & | ar | ) |
Definition at line 543 of file KB.cpp.
References hard_wired_diagnosis, and indicator_bias_factors.
Referenced by Operator::serialize().
| void KB::state_save | ( | boost::archive::binary_oarchive & | ar | ) | const |
Definition at line 535 of file KB.cpp.
References hard_wired_diagnosis, and indicator_bias_factors.
Referenced by Operator::serialize().
| std::vector<std::unique_ptr<KBHardWiredUnit> > KB::hard_wired_diagnosis |
Definition at line 84 of file KB.h.
Referenced by KeyParameterHistoryUnit::addDataSet(), Operator::checkAndActivateHWKB(), clearKB(), clearKBForRestart(), copyKB(), copyKBForRestart(), getConfidenceLevelOfHWDiagnosis(), getProcedureNameOfHWDiagnosis(), getPtrToHardWiredDiagnosis(), getStepNameOfHWDiagnosis(), Operator::initiationForSimulation(), KBcalculateHardWiredConfidence(), KBcheckHardWiredMatchForAlarmState(), KBcheckHardWiredMatchForComponentState(), KBcheckHardWiredMatchForControl(), KBcheckHardWiredMatchForMentalBelief(), KBcheckHardWiredMatchForParameterTrend(), KBcheckHardWiredMatchForParameterValue(), KBcheckHardWiredMatchForProcedureActivity(), KBcheckHardWiredMatchForSupportSystemState(), outputHardWiredDiagnosisLabelToFile(), outputHardWiredDiagnosisUnitToFile(), readHardWiredDiagnosis(), retrieveKBFromFile(), saveKBToFile(), serialize(), state_load(), state_save(), and EventSymptomMatrix::updateRationalSymptomConfidence().
| std::vector<std::unique_ptr<KBBiasFactorUnit> > KB::indicator_bias_factors |
Definition at line 86 of file KB.h.
Referenced by Operator::biasFilter(), clearKB(), clearKBForRestart(), copyKB(), copyKBForRestart(), readIndicatorBiasFactors(), retrieveKBFromFile(), saveKBToFile(), serialize(), state_load(), and state_save().
| std::vector<std::unique_ptr<KBSystemDecompositionUnit> > KB::system_decomposition |
Definition at line 85 of file KB.h.
Referenced by clearKB(), clearKBForRestart(), copyKB(), copyKBForRestart(), readSystemDecompositionKB(), retrieveKBFromFile(), saveKBToFile(), and serialize().
| std::map<std::string, KBSystemDecompositionUnit *> KB::system_decomposition_map |
Definition at line 87 of file KB.h.
Referenced by ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAction(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAlarm(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedComponentState(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterTrend(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterValue(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedSupportSystemState(), Operator::checkCompletenessOfSystemDecomposition(), Operator::checkItemRelevanceToCurrentDiagnosis(), clearKB(), clearKBForRestart(), copyKB(), copyKBForRestart(), readSystemDecompositionKB(), retrieveKBFromFile(), and serialize().
| std::map<int, std::string> KB::system_function_map |
Definition at line 88 of file KB.h.
Referenced by clearKB(), clearKBForRestart(), copyKB(), copyKBForRestart(), getAssociatedFunctionalDecompositionName(), readSystemDecompositionKB(), retrieveKBFromFile(), saveKBToFile(), and serialize().