|
ADS-IDAC Engine 5.0.0
|
#include <ShortTermMemory.h>
Public Attributes | |
| std::list< std::unique_ptr< InfoChunkMental > > | grouped_info |
| InfoChunk | perceived_info |
| CommunicationPlace | new_info |
| Timer | parameter_update_time |
| Timer | component_update_time |
| Timer | support_system_update_time |
| Timer | alarm_update_time |
Private Attributes | |
| int | info_gather_mode |
Friends | |
| class | boost::serialization::access |
Definition at line 26 of file ShortTermMemory.h.
| ShortTermMemory::ShortTermMemory | ( | ) |
Definition at line 18 of file ShortTermMemory.cpp.
References info_gather_mode, and sim::State::New.
|
virtual |
Definition at line 22 of file ShortTermMemory.cpp.
| void ShortTermMemory::activatePausedInfoChunck | ( | ) |
Definition at line 759 of file ShortTermMemory.cpp.
References sim::State::Active, AdsSimErr, SimulationContext::Branch_center, g_sim, grouped_info, sim::State::Pause, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().
Referenced by OperatorDM::performRecoveryAction().
| void ShortTermMemory::addNewInfoChunkMentalForTheDiagnosis | ( | DecisionDiagnosis * | _dia | ) |
Definition at line 392 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunk::diagnosis, grouped_info, sim::State::Pause, perceived_info, and StateOfActivation::setStateOfActivation().
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void ShortTermMemory::calculatePriorityAndSetStateOfActivation | ( | ) |
Definition at line 442 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunkMental::calculatePriority(), StateOfActivation::getStateOfActivation(), grouped_info, sim::State::Interrupted, and StateOfActivation::setStateOfActivation().
Referenced by OperatorAT::oneThroughProcessForBlockI(), and OperatorDM::oneThroughProcessForBlockI().
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForDiagnosis | ( | DecisionDiagnosis * | _dia | ) |
Definition at line 407 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunk::diagnosis, MentalDiagnosis::getDiagnosis(), grouped_info, sim::State::Pause, and StateOfActivation::setStateOfActivation().
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAction | ( | DecisionAction * | _mc, |
| KB & | _kb | ||
| ) |
Definition at line 123 of file ShortTermMemory.cpp.
References InfoChunk::action, AdsSimErr, SimulationContext::Branch_center, g_sim, ControlElement::getDisplayName(), KBSystemDecompositionUnit::getNumberOfRelatedSubsystem(), KBSystemDecompositionUnit::getRelatedSubsystem(), grouped_info, r5pars_, InfoChunkMental::related_subsystem, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and KB::system_decomposition_map.
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAlarm | ( | MentalAlarm * | _ms, |
| KB & | _kb | ||
| ) |
Definition at line 75 of file ShortTermMemory.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, AlarmElement::getAlarmName(), KBSystemDecompositionUnit::getNumberOfRelatedSubsystem(), KBSystemDecompositionUnit::getRelatedSubsystem(), grouped_info, InfoChunk::perceived_alarms, r5pars_, InfoChunkMental::related_subsystem, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and KB::system_decomposition_map.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedComponentState | ( | MentalComponentState * | _mc, |
| KB & | _kb | ||
| ) |
Definition at line 173 of file ShortTermMemory.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, DisplayElement::getDisplayName(), KBSystemDecompositionUnit::getNumberOfRelatedSubsystem(), KBSystemDecompositionUnit::getRelatedSubsystem(), grouped_info, InfoChunk::perceived_component_state, r5pars_, InfoChunkMental::related_subsystem, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and KB::system_decomposition_map.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterTrend | ( | MentalParameterTrend * | _mpt, |
| KB & | _kb | ||
| ) |
Definition at line 322 of file ShortTermMemory.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, DisplayElement::getDisplayName(), KBSystemDecompositionUnit::getNumberOfRelatedSubsystem(), KBSystemDecompositionUnit::getRelatedSubsystem(), grouped_info, InfoChunk::perceived_parameter_trend, r5pars_, InfoChunkMental::related_subsystem, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and KB::system_decomposition_map.
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterValue | ( | MentalParameterValue * | _mpv, |
| KB & | _kb | ||
| ) |
Definition at line 273 of file ShortTermMemory.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, DisplayElement::getDisplayName(), KBSystemDecompositionUnit::getNumberOfRelatedSubsystem(), KBSystemDecompositionUnit::getRelatedSubsystem(), grouped_info, InfoChunk::perceived_parameter_value, r5pars_, InfoChunkMental::related_subsystem, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and KB::system_decomposition_map.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedSupportSystemState | ( | MentalSupportSystemState * | _mss, |
| KB & | _kb | ||
| ) |
Definition at line 223 of file ShortTermMemory.cpp.
References AdsSimErr, SimulationContext::Branch_center, g_sim, DisplayElement::getDisplayName(), KBSystemDecompositionUnit::getNumberOfRelatedSubsystem(), KBSystemDecompositionUnit::getRelatedSubsystem(), grouped_info, InfoChunk::perceived_support_system_state, r5pars_, InfoChunkMental::related_subsystem, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and KB::system_decomposition_map.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| void ShortTermMemory::clearNewInfo | ( | ) |
Definition at line 49 of file ShortTermMemory.cpp.
References CommunicationPlace::clearCommunicationPlaceAllPointers(), and new_info.
Referenced by OperatorAT::receiveNewInformation(), and OperatorDM::receiveNewInformation().
| void ShortTermMemory::clearShortTermMemoryForRestart | ( | ) |
Definition at line 517 of file ShortTermMemory.cpp.
References CommunicationPlace::clearCommunicationPlaceAllPointers(), InfoChunk::clearInfoChunk(), grouped_info, new_info, and perceived_info.
Referenced by Operator::clearOperatorFinal(), and Operator::clearOperatorForRestart().
| void ShortTermMemory::clearShortTermMemoryFromRestartInfo | ( | ) |
Definition at line 532 of file ShortTermMemory.cpp.
References CommunicationPlace::clearCommunicationPlaceAllPointers(), InfoChunk::clearInfoChunk(), grouped_info, new_info, and perceived_info.
Referenced by Operator::clearOperatorFromRestartInfo().
| void ShortTermMemory::clearShortTermMemoryFromRestartNodeInfoMultiProcessors | ( | ) |
Definition at line 547 of file ShortTermMemory.cpp.
References CommunicationPlace::clearCommunicationPlaceAll(), InfoChunk::clearInfoChunk(), grouped_info, new_info, and perceived_info.
Referenced by Operator::clearOperatorFromRestartNodeInfoMultiProcessors().
| void ShortTermMemory::copyShortTermMemoryFromRestartInfo | ( | ShortTermMemory & | _stm | ) |
Definition at line 562 of file ShortTermMemory.cpp.
References InfoChunk::action, InfoChunk::action_objective, InfoChunk::action_pack, alarm_update_time, component_update_time, InfoChunk::copyInfoChunk(), Timer::copyTimer(), InfoChunk::diagnosis, getInfoGatherMode(), InfoChunk::goal, grouped_info, info_gather_mode, parameter_update_time, InfoChunk::perceived_alarms, InfoChunk::perceived_component_state, perceived_info, InfoChunk::perceived_parameter_trend, InfoChunk::perceived_parameter_value, InfoChunk::perceived_support_system_state, InfoChunk::procedure_step, InfoChunkMental::related_subsystem, InfoChunkMental::setPriority(), InfoChunk::strategy, InfoChunk::subgoal, and support_system_update_time.
Referenced by Operator::copyOperatorFromRestartInfo(), and Operator::copyOperatorFromRestartInfoMultiProcessor().
| void ShortTermMemory::copyShortTermMemoryToRestartInfo | ( | ShortTermMemory & | _stm | ) |
Definition at line 494 of file ShortTermMemory.cpp.
References alarm_update_time, component_update_time, InfoChunk::copyInfoChunk(), Timer::copyTimer(), getInfoGatherMode(), grouped_info, info_gather_mode, parameter_update_time, perceived_info, and support_system_update_time.
Referenced by Operator::copyOperatorToRestartInfo().
| void ShortTermMemory::failCurrentDiagnosisAndActivateAPausedDiagnosis | ( | ) |
Definition at line 371 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunk::diagnosis, sim::State::Failed, sim::State::Pause, and perceived_info.
Referenced by OperatorAT::infoChunking(), and OperatorDM::infoChunking().
| int ShortTermMemory::getCurrentGoal | ( | ) |
Definition at line 844 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunk::goal, sim::None, and perceived_info.
Referenced by OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), and OperatorAT::selectGoal().
| InfoChunkMental * ShortTermMemory::getInfoChunkAt | ( | int | n | ) |
Definition at line 474 of file ShortTermMemory.cpp.
References grouped_info.
| int ShortTermMemory::getInfoGatherMode | ( | ) |
Definition at line 781 of file ShortTermMemory.cpp.
References info_gather_mode.
Referenced by ExpectationORUnit::assessExpectation(), copyShortTermMemoryFromRestartInfo(), and copyShortTermMemoryToRestartInfo().
| double ShortTermMemory::getIntensiveOfInformationPerceived | ( | ) |
| int ShortTermMemory::getTotalFailedActionPack | ( | ) |
Definition at line 70 of file ShortTermMemory.cpp.
| int ShortTermMemory::getTotalFailedDiagnosis | ( | ) |
Definition at line 65 of file ShortTermMemory.cpp.
References InfoChunk::getTotalNumberOfFailedDiagnosis(), and perceived_info.
| int ShortTermMemory::getTotalNumberOfAlarmPerceived | ( | ) |
Definition at line 60 of file ShortTermMemory.cpp.
References InfoChunk::getTotalNumberOfAlarmPerceived(), and perceived_info.
| int ShortTermMemory::getTotalNumberOfInfoChunk | ( | ) |
Definition at line 473 of file ShortTermMemory.cpp.
References grouped_info.
| int ShortTermMemory::getTotalPieceOfInfoPerceived | ( | ) |
Definition at line 52 of file ShortTermMemory.cpp.
References InfoChunk::getTotalPieceOfInfoPerceived(), and perceived_info.
| double ShortTermMemory::getTotalWeightOfAlarmPerceived | ( | ) |
Definition at line 57 of file ShortTermMemory.cpp.
References InfoChunk::getTotalWeightOfAlarmPerceived(), and perceived_info.
| InfoChunkMental * ShortTermMemory::getWorkingMemory | ( | ) |
Definition at line 24 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunkMental::getPriority(), grouped_info, perceived_info, and InfoChunk::pointToAvtiveGoalAndStrategy().
Referenced by ProcedureStepUnit::executeNonResponseAction(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), OperatorAT::oneThroughProcessForBlockD(), OperatorDM::oneThroughProcessForBlockD(), OperatorDM::oneThroughProcessForBlockI(), OperatorDM::performRecoveryAction(), OperatorAT::selectGoal(), OperatorCT::selectGoal(), OperatorDM::selectGoal(), OperatorAT::selectStrategy(), and OperatorDM::selectStrategy().
| void ShortTermMemory::initiationForSimulation | ( | ) |
Definition at line 462 of file ShortTermMemory.cpp.
References sim::State::Active, InfoChunk::addANewGoal(), InfoChunk::addANewStrategy(), InfoChunk::goal, grouped_info, sim::None, perceived_info, and InfoChunk::strategy.
Referenced by Operator::initiationForSimulation().
| void ShortTermMemory::retrieveShortTermMemoryFromFile | ( | std::ifstream & | ) |
Definition at line 798 of file ShortTermMemory.cpp.
References alarm_update_time, SimulationContext::Branch_center, component_update_time, g_sim, grouped_info, info_gather_mode, NoKB, parameter_update_time, perceived_info, r5pars_, InfoChunk::retrieveInfoChunkFromFile(), Timer::retrieveTimerFromFile(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and support_system_update_time.
Referenced by Operator::retrieveOperatorFromFile().
| void ShortTermMemory::saveShortTermMemoryToFile | ( | std::ofstream & | ) |
Definition at line 782 of file ShortTermMemory.cpp.
References alarm_update_time, component_update_time, grouped_info, info_gather_mode, parameter_update_time, perceived_info, InfoChunk::saveInfoChunkToFile(), Timer::saveTimerToFile(), and support_system_update_time.
Referenced by Operator::saveOperatorToFile().
|
inline |
Definition at line 71 of file ShortTermMemory.h.
References alarm_update_time, component_update_time, grouped_info, info_gather_mode, new_info, parameter_update_time, perceived_info, and support_system_update_time.
| void ShortTermMemory::setInfoGatherMode | ( | int | n | ) |
Definition at line 780 of file ShortTermMemory.cpp.
References info_gather_mode.
Referenced by OperatorAT::identifyRelevantInformation(), OperatorDM::identifyRelevantInformation(), and Operator::initiationForSimulation().
|
friend |
Definition at line 69 of file ShortTermMemory.h.
| Timer ShortTermMemory::alarm_update_time |
Definition at line 67 of file ShortTermMemory.h.
Referenced by ExpectationORUnit::assessExpectation(), copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), Operator::initiationForSimulation(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), and serialize().
| Timer ShortTermMemory::component_update_time |
Definition at line 67 of file ShortTermMemory.h.
Referenced by ExpectationORUnit::assessExpectation(), copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), Operator::initiationForSimulation(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), and serialize().
| std::list<std::unique_ptr<InfoChunkMental> > ShortTermMemory::grouped_info |
Definition at line 64 of file ShortTermMemory.h.
Referenced by activatePausedInfoChunck(), addNewInfoChunkMentalForTheDiagnosis(), calculatePriorityAndSetStateOfActivation(), checkAndGenerateInfoChunkMentalForDiagnosis(), checkAndGenerateInfoChunkMentalForRelatedAction(), checkAndGenerateInfoChunkMentalForRelatedAlarm(), checkAndGenerateInfoChunkMentalForRelatedComponentState(), checkAndGenerateInfoChunkMentalForRelatedParameterTrend(), checkAndGenerateInfoChunkMentalForRelatedParameterValue(), checkAndGenerateInfoChunkMentalForRelatedSupportSystemState(), clearShortTermMemoryForRestart(), clearShortTermMemoryFromRestartInfo(), clearShortTermMemoryFromRestartNodeInfoMultiProcessors(), copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), getInfoChunkAt(), getTotalNumberOfInfoChunk(), getWorkingMemory(), initiationForSimulation(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), and serialize().
|
private |
Definition at line 84 of file ShortTermMemory.h.
Referenced by copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), getInfoGatherMode(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), serialize(), setInfoGatherMode(), and ShortTermMemory().
| CommunicationPlace ShortTermMemory::new_info |
Definition at line 66 of file ShortTermMemory.h.
Referenced by Operator::biasFilter(), clearNewInfo(), clearShortTermMemoryForRestart(), clearShortTermMemoryFromRestartInfo(), clearShortTermMemoryFromRestartNodeInfoMultiProcessors(), OperatorAT::identifyRelevantInformation(), OperatorDM::identifyRelevantInformation(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), and serialize().
| Timer ShortTermMemory::parameter_update_time |
Definition at line 67 of file ShortTermMemory.h.
Referenced by ExpectationORUnit::assessExpectation(), copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), Operator::initiationForSimulation(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), and serialize().
| InfoChunk ShortTermMemory::perceived_info |
Definition at line 65 of file ShortTermMemory.h.
Referenced by addNewInfoChunkMentalForTheDiagnosis(), ExpectationORUnit::assessExpectation(), ReasonMachine::BuildTheConnectionsWithinRM(), Operator::checkAndActivateHWKB(), Operator::checkAndResetProcedureStep(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), clearShortTermMemoryForRestart(), clearShortTermMemoryFromRestartInfo(), clearShortTermMemoryFromRestartNodeInfoMultiProcessors(), ReasonMachine::CopyReasonMachineFromAnotherRM(), copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ProcedureStepUnit::executeNonResponseAction(), failCurrentDiagnosisAndActivateAPausedDiagnosis(), getCurrentGoal(), polynomial::GetCurveValue(), getTotalFailedDiagnosis(), getTotalNumberOfAlarmPerceived(), getTotalPieceOfInfoPerceived(), getTotalWeightOfAlarmPerceived(), getWorkingMemory(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), Operator::initiationForSimulation(), initiationForSimulation(), Operator::interruptAllMentalProcedures(), Operator::interruptLowPriorityMentalProcedures(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), OperatorAT::oneThroughProcessForBlockD(), OperatorDM::oneThroughProcessForBlockD(), OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), ProcedureStep::oneThroughProcessForInstinctiveResponseProcedure(), ProcedureStep::oneThroughProcessForProcedureStep(), Operator::performAMentalProcedure(), OperatorDM::performFollowProcedureStrategy(), DiagnoseInvestigator::ReadCurrentProcedureStepInformation(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), serialize(), DiagnosisActionUnit::setPtrToHighPriorityAction(), DiagnoseInvestigator::TerminateTheCurrentProcedureStep(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().
| Timer ShortTermMemory::support_system_update_time |
Definition at line 67 of file ShortTermMemory.h.
Referenced by ExpectationORUnit::assessExpectation(), copyShortTermMemoryFromRestartInfo(), copyShortTermMemoryToRestartInfo(), Operator::initiationForSimulation(), retrieveShortTermMemoryFromFile(), saveShortTermMemoryToFile(), and serialize().