← Documentation
ADS-IDAC Engine 5.0.0
ShortTermMemory Class Reference

#include <ShortTermMemory.h>

Collaboration diagram for ShortTermMemory:
[legend]

Public Member Functions

 ShortTermMemory ()
 
virtual ~ShortTermMemory ()
 
void clearNewInfo ()
 
int getTotalPieceOfInfoPerceived ()
 
double getTotalWeightOfAlarmPerceived ()
 
int getTotalNumberOfAlarmPerceived ()
 
int getTotalFailedDiagnosis ()
 
int getTotalFailedActionPack ()
 
double getIntensiveOfInformationPerceived ()
 
InfoChunkMental * getWorkingMemory ()
 
void checkAndGenerateInfoChunkMentalForRelatedAlarm (MentalAlarm *, KB &)
 
void checkAndGenerateInfoChunkMentalForRelatedComponentState (MentalComponentState *, KB &)
 
void checkAndGenerateInfoChunkMentalForRelatedSupportSystemState (MentalSupportSystemState *, KB &)
 
void checkAndGenerateInfoChunkMentalForRelatedParameterValue (MentalParameterValue *, KB &)
 
void checkAndGenerateInfoChunkMentalForRelatedParameterTrend (MentalParameterTrend *, KB &)
 
void checkAndGenerateInfoChunkMentalForDiagnosis (DecisionDiagnosis *)
 
void checkAndGenerateInfoChunkMentalForRelatedAction (DecisionAction *, KB &)
 
void calculatePriorityAndSetStateOfActivation ()
 
void initiationForSimulation ()
 
int getTotalNumberOfInfoChunk ()
 
InfoChunkMental * getInfoChunkAt (int)
 
void copyShortTermMemoryToRestartInfo (ShortTermMemory &)
 
void copyShortTermMemoryFromRestartInfo (ShortTermMemory &)
 
void clearShortTermMemoryForRestart ()
 
void clearShortTermMemoryFromRestartInfo ()
 
void clearShortTermMemoryFromRestartNodeInfoMultiProcessors ()
 
void activatePausedInfoChunck ()
 
void setInfoGatherMode (int)
 
int getInfoGatherMode ()
 
void addNewInfoChunkMentalForTheDiagnosis (DecisionDiagnosis *)
 
void failCurrentDiagnosisAndActivateAPausedDiagnosis ()
 
void saveShortTermMemoryToFile (std::ofstream &)
 
void retrieveShortTermMemoryFromFile (std::ifstream &)
 
int getCurrentGoal ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

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
 

Detailed Description

Definition at line 26 of file ShortTermMemory.h.

Constructor & Destructor Documentation

◆ ShortTermMemory()

ShortTermMemory::ShortTermMemory ( )

Definition at line 18 of file ShortTermMemory.cpp.

References info_gather_mode, and sim::State::New.

◆ ~ShortTermMemory()

ShortTermMemory::~ShortTermMemory ( )
virtual

Definition at line 22 of file ShortTermMemory.cpp.

Member Function Documentation

◆ activatePausedInfoChunck()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addNewInfoChunkMentalForTheDiagnosis()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculatePriorityAndSetStateOfActivation()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkAndGenerateInfoChunkMentalForDiagnosis()

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().

Here is the call graph for this function:

◆ checkAndGenerateInfoChunkMentalForRelatedAction()

void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAction ( DecisionAction *  _mc,
KB &  _kb 
)

◆ checkAndGenerateInfoChunkMentalForRelatedAlarm()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkAndGenerateInfoChunkMentalForRelatedComponentState()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkAndGenerateInfoChunkMentalForRelatedParameterTrend()

void ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterTrend ( MentalParameterTrend *  _mpt,
KB &  _kb 
)

◆ checkAndGenerateInfoChunkMentalForRelatedParameterValue()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkAndGenerateInfoChunkMentalForRelatedSupportSystemState()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearNewInfo()

void ShortTermMemory::clearNewInfo ( )

Definition at line 49 of file ShortTermMemory.cpp.

References CommunicationPlace::clearCommunicationPlaceAllPointers(), and new_info.

Referenced by OperatorAT::receiveNewInformation(), and OperatorDM::receiveNewInformation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearShortTermMemoryForRestart()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearShortTermMemoryFromRestartInfo()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearShortTermMemoryFromRestartNodeInfoMultiProcessors()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyShortTermMemoryFromRestartInfo()

◆ copyShortTermMemoryToRestartInfo()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ failCurrentDiagnosisAndActivateAPausedDiagnosis()

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().

Here is the caller graph for this function:

◆ getCurrentGoal()

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().

Here is the caller graph for this function:

◆ getInfoChunkAt()

InfoChunkMental * ShortTermMemory::getInfoChunkAt ( int  n)

Definition at line 474 of file ShortTermMemory.cpp.

References grouped_info.

◆ getInfoGatherMode()

int ShortTermMemory::getInfoGatherMode ( )

Definition at line 781 of file ShortTermMemory.cpp.

References info_gather_mode.

Referenced by ExpectationORUnit::assessExpectation(), copyShortTermMemoryFromRestartInfo(), and copyShortTermMemoryToRestartInfo().

Here is the caller graph for this function:

◆ getIntensiveOfInformationPerceived()

double ShortTermMemory::getIntensiveOfInformationPerceived ( )

◆ getTotalFailedActionPack()

int ShortTermMemory::getTotalFailedActionPack ( )

Definition at line 70 of file ShortTermMemory.cpp.

◆ getTotalFailedDiagnosis()

int ShortTermMemory::getTotalFailedDiagnosis ( )

Definition at line 65 of file ShortTermMemory.cpp.

References InfoChunk::getTotalNumberOfFailedDiagnosis(), and perceived_info.

Here is the call graph for this function:

◆ getTotalNumberOfAlarmPerceived()

int ShortTermMemory::getTotalNumberOfAlarmPerceived ( )

Definition at line 60 of file ShortTermMemory.cpp.

References InfoChunk::getTotalNumberOfAlarmPerceived(), and perceived_info.

Here is the call graph for this function:

◆ getTotalNumberOfInfoChunk()

int ShortTermMemory::getTotalNumberOfInfoChunk ( )

Definition at line 473 of file ShortTermMemory.cpp.

References grouped_info.

◆ getTotalPieceOfInfoPerceived()

int ShortTermMemory::getTotalPieceOfInfoPerceived ( )

Definition at line 52 of file ShortTermMemory.cpp.

References InfoChunk::getTotalPieceOfInfoPerceived(), and perceived_info.

Here is the call graph for this function:

◆ getTotalWeightOfAlarmPerceived()

double ShortTermMemory::getTotalWeightOfAlarmPerceived ( )

Definition at line 57 of file ShortTermMemory.cpp.

References InfoChunk::getTotalWeightOfAlarmPerceived(), and perceived_info.

Here is the call graph for this function:

◆ getWorkingMemory()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initiationForSimulation()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ retrieveShortTermMemoryFromFile()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveShortTermMemoryToFile()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

template<class Archive >
void ShortTermMemory::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

◆ setInfoGatherMode()

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().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 69 of file ShortTermMemory.h.

Member Data Documentation

◆ alarm_update_time

◆ component_update_time

◆ grouped_info

◆ info_gather_mode

◆ new_info

◆ parameter_update_time

◆ perceived_info

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().

◆ support_system_update_time


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