← Documentation
ADS-IDAC Engine 5.0.0
InfoChunk Class Reference

#include <InfoChunk.h>

Inheritance diagram for InfoChunk:
[legend]

Public Member Functions

int ReturnPositionOfOneMentalAlarmInTheVector (MentalAlarm *)
 
int ReturnPositionOfOneMentalParameterValue (MentalParameterValue *)
 
int ReturnPositionOfOneMentalComponentStateInTheVector (MentalComponentState *)
 
int ReturnPositionOfOneMentalSupportSystemStateInTheVector (MentalSupportSystemState *)
 
 InfoChunk ()
 
virtual ~InfoChunk ()
 
void clearInfoChunk ()
 
void clearInfoChunkPointers ()
 
int getTotalPieceOfInfoPerceived ()
 
double getTotalWeightOfAlarmPerceived ()
 
int getTotalNumberOfAlarmPerceived ()
 
int getTotalNumberOfFailedDiagnosis ()
 
int getCurrentGoal ()
 
int getCurrentStrategy ()
 
int getCurrentSubGoal ()
 
int getStateOfAProcedureStep (std::string, std::string)
 
int getMentalPriorityOfAProcedureStep (std::string, std::string)
 
std::string getCurrentDiagnosis ()
 
void addANewGoal (int, int)
 
void addANewStrategy (int, int)
 
void addANewDiagnosis (std::string, int)
 
void addANewSubGoal (int, int)
 
void addNewProcedureStep (std::string, std::string, int)
 
void addNewInstinctiveResponseProcedure (std::string, std::string, int, int, double)
 
void pointToAvtiveGoalAndStrategy (InfoChunk &)
 
std::string getCurrentProcedureName ()
 
std::string getCurrentProceduralStepName ()
 
std::string getCurrentInstinctiveResponseProcedureName ()
 
std::string getCurrentInstinctiveResponseProceduralStepName ()
 
int doneWithCurrentGoalAndGoForPreviouslyPausedOne ()
 
int doneWithCurrentStrategyAndGoForPreviouslyPausedOne ()
 
std::string doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne ()
 
int doneWithCurrentSubGoalAndGoForPreviouslyPausedOne ()
 
bool isThereMentalProcedureWaitingForExecution (std::string, std::string)
 
DecisionProcedureStep * identifyTheMentalProcedureToBePerformed (std::string, std::string)
 
void pauseCurrenGoalAndAddANewOne (int)
 
void pauseCurrenStrategyAndAddANewOne (int)
 
void pauseCurrenSubGoalAndAddANewOne (int)
 
void pauseCurrenDiagnosisAndAddANewOne (std::string)
 
void pointToTheNewGoal (DecisionGoal *)
 
void pointToTheNewStrategy (DecisionStrategy *)
 
void pointToTheNewSubGoal (DecisionSubGoal *)
 
void pointToTheNewDiagnosis (DecisionDiagnosis *)
 
void pointToTheNewActionObjective (DecisionActionObjective *)
 
void pointToTheNewActionPack (DecisionActionPack *)
 
void pointToTheNewAction (DecisionAction *)
 
void pointToTheNewProcedureStep (DecisionProcedureStep *)
 
void pointToTheNewInstinctiveResponseProcedureStep (DecisionProcedureStep *)
 
void updateActionState (std::string, int)
 
void generateErrorMessage (std::string)
 
DecisionAction * checkExistanceOfAction (std::string)
 
MentalAlarm * checkExistanceOfPerceivedAlarms (std::string)
 
MentalComponentState * checkExistanceOfPerceivedComponentState (std::string)
 
MentalSupportSystemState * checkExistanceOfPerceivedSupportSystemState (std::string)
 
MentalParameterValue * checkExistanceOfPerceivedParameterValue (std::string)
 
MentalParameterTrend * checkExistanceOfPerceivedParameterTrend (std::string)
 
ExpectedMentalBelief * checkExistanceOfMentalBelief (std::string)
 
DecisionProcedureStep * checkExistanceOfAnInstinctiveResponseProcedure (std::string, std::string)
 
DecisionProcedureStep * checkExistanceOfAProcedure (std::string, std::string)
 
void interruptCurrentGoal ()
 
void interruptCurrentStrategy ()
 
void interruptCurrentSubGoal ()
 
void interruptCurrentDiagnosis ()
 
void interruptCurrentActionObjective ()
 
void interruptCurrentActionPack ()
 
void interruptCurrentAction ()
 
void interruptCurrentProcedureStep ()
 
int checkWhetherExpectedAlarmMatchObservation (KBExpectedAlarmStateUnit *)
 
int checkWhetherExpectedComponentStateMatchObservation (KBExpectedComponentStateUnit *)
 
int checkWhetherExpectedSupportSystemStateMatchObservation (KBExpectedSupportSystemStateUnit *)
 
int checkWhetherExpectedParameterValueMatchObservation (KBExpectedParameterValueUnit *)
 
int checkWhetherExpectedParameterDifferenceMatchObservation (KBExpectedParameterDifferenceUnit *)
 
int checkWhetherExpectedParameterTrendMatchObservation (KBExpectedParameterTrendUnit *)
 
DecisionProcedureStep * getCurrentProcedureStepPtr (int)
 
DecisionProcedureStep * getCurrentInstinctiveResponseProcedurePtr ()
 
void copyInfoChunk (InfoChunk &)
 
bool diagnosisIsIncluded (std::string)
 
bool activateTheDiagnosis (std::string)
 
bool includeActiveDiagnosis ()
 
void setStateOfAProcedureStep (std::string, std::string, int)
 
void saveInfoChunkToFile (std::ofstream &)
 
void retrieveInfoChunkFromFile (std::ifstream &)
 
void replaceObjecByPointerForGroupedInfoAll (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoGoal (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoStrategy (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoSubGoal (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoDiagnosis (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoActionObjective (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoActionPack (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoAction (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoProcedureStep (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoInstinctiveResponseProcedure (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoAlarm (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoComponentState (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoSupportSystemState (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoParameterValue (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoParameterTrend (InfoChunk &)
 
void replaceObjecByPointerForGroupedInfoMentalBelief (InfoChunk &)
 
DecisionGoal * getActiveGoalPt ()
 
DecisionStrategy * getActiveStrategyPt ()
 
DecisionSubGoal * getActiveSubGoalPt ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< std::shared_ptr< DecisionGoal > > goal
 
std::vector< std::shared_ptr< DecisionStrategy > > strategy
 
std::vector< std::shared_ptr< DecisionSubGoal > > subgoal
 
std::vector< std::shared_ptr< DecisionDiagnosis > > diagnosis
 
std::vector< std::shared_ptr< DecisionActionObjective > > action_objective
 
std::vector< std::shared_ptr< DecisionActionPack > > action_pack
 
std::vector< std::shared_ptr< DecisionAction > > action
 
std::vector< std::shared_ptr< DecisionProcedureStep > > procedure_step
 
std::vector< std::shared_ptr< DecisionProcedureStep > > instinctive_response_procedure
 
std::vector< std::shared_ptr< MentalAlarm > > perceived_alarms
 
std::vector< std::shared_ptr< MentalComponentState > > perceived_component_state
 
std::vector< std::shared_ptr< MentalSupportSystemState > > perceived_support_system_state
 
std::vector< std::shared_ptr< MentalParameterValue > > perceived_parameter_value
 
std::vector< std::shared_ptr< MentalParameterTrend > > perceived_parameter_trend
 
std::vector< std::shared_ptr< ExpectedMentalBelief > > mental_belief
 

Detailed Description

Definition at line 32 of file InfoChunk.h.

Constructor & Destructor Documentation

◆ InfoChunk()

InfoChunk::InfoChunk ( )

Definition at line 18 of file InfoChunk.cpp.

◆ ~InfoChunk()

InfoChunk::~InfoChunk ( )
virtual

Definition at line 22 of file InfoChunk.cpp.

Member Function Documentation

◆ activateTheDiagnosis()

bool InfoChunk::activateTheDiagnosis ( std::string  )

Definition at line 515 of file InfoChunk.cpp.

References sim::State::Active, diagnosis, sim::State::Pause, and StateOfActivation::setStateOfActivation().

Here is the call graph for this function:

◆ addANewDiagnosis()

void InfoChunk::addANewDiagnosis ( std::string  ,
int   
)

Definition at line 253 of file InfoChunk.cpp.

References diagnosis.

Referenced by pauseCurrenDiagnosisAndAddANewOne().

Here is the caller graph for this function:

◆ addANewGoal()

void InfoChunk::addANewGoal ( int  _goal,
int  _active_state 
)

Definition at line 240 of file InfoChunk.cpp.

References goal.

Referenced by ShortTermMemory::initiationForSimulation(), and pauseCurrenGoalAndAddANewOne().

Here is the caller graph for this function:

◆ addANewStrategy()

void InfoChunk::addANewStrategy ( int  _strategy,
int  _active_state 
)

Definition at line 246 of file InfoChunk.cpp.

References strategy.

Referenced by ShortTermMemory::initiationForSimulation(), and pauseCurrenStrategyAndAddANewOne().

Here is the caller graph for this function:

◆ addANewSubGoal()

void InfoChunk::addANewSubGoal ( int  _subgoal,
int  _active_state 
)

Definition at line 259 of file InfoChunk.cpp.

References subgoal.

Referenced by pauseCurrenSubGoalAndAddANewOne().

Here is the caller graph for this function:

◆ addNewInstinctiveResponseProcedure()

void InfoChunk::addNewInstinctiveResponseProcedure ( std::string  ,
std::string  ,
int  ,
int  ,
double   
)

Definition at line 272 of file InfoChunk.cpp.

References checkExistanceOfAnInstinctiveResponseProcedure(), and instinctive_response_procedure.

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

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

◆ addNewProcedureStep()

void InfoChunk::addNewProcedureStep ( std::string  ,
std::string  ,
int   
)

Definition at line 265 of file InfoChunk.cpp.

References procedure_step.

◆ checkExistanceOfAction()

DecisionAction * InfoChunk::checkExistanceOfAction ( std::string  )

Definition at line 834 of file InfoChunk.cpp.

References action.

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

Here is the caller graph for this function:

◆ checkExistanceOfAnInstinctiveResponseProcedure()

DecisionProcedureStep * InfoChunk::checkExistanceOfAnInstinctiveResponseProcedure ( std::string  ,
std::string   
)

Definition at line 860 of file InfoChunk.cpp.

References sim::State::Done, instinctive_response_procedure, sim::State::Interrupted, and sim::State::Succeed.

Referenced by addNewInstinctiveResponseProcedure(), OperatorAT::infoChunking(), and OperatorDM::infoChunking().

Here is the caller graph for this function:

◆ checkExistanceOfAProcedure()

DecisionProcedureStep * InfoChunk::checkExistanceOfAProcedure ( std::string  ,
std::string   
)

Definition at line 878 of file InfoChunk.cpp.

References sim::State::Done, sim::State::Interrupted, procedure_step, and sim::State::Succeed.

Referenced by OperatorDM::infoChunking().

Here is the caller graph for this function:

◆ checkExistanceOfMentalBelief()

ExpectedMentalBelief * InfoChunk::checkExistanceOfMentalBelief ( std::string  )

Definition at line 934 of file InfoChunk.cpp.

References mental_belief.

Referenced by ExpectationORUnit::assessExpectation(), Operator::checkAndActivateHWKB(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), and TimeConstrainedModule::updateRawDataAndCalculateTimeToThreshold().

Here is the caller graph for this function:

◆ checkExistanceOfPerceivedAlarms()

MentalAlarm * InfoChunk::checkExistanceOfPerceivedAlarms ( std::string  )

Definition at line 847 of file InfoChunk.cpp.

References perceived_alarms.

Referenced by ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorDM::infoChunking().

Here is the caller graph for this function:

◆ checkExistanceOfPerceivedComponentState()

MentalComponentState * InfoChunk::checkExistanceOfPerceivedComponentState ( std::string  )

Definition at line 895 of file InfoChunk.cpp.

References perceived_component_state.

Referenced by ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorDM::infoChunking().

Here is the caller graph for this function:

◆ checkExistanceOfPerceivedParameterTrend()

MentalParameterTrend * InfoChunk::checkExistanceOfPerceivedParameterTrend ( std::string  )

Definition at line 947 of file InfoChunk.cpp.

References perceived_parameter_trend.

◆ checkExistanceOfPerceivedParameterValue()

MentalParameterValue * InfoChunk::checkExistanceOfPerceivedParameterValue ( std::string  )

◆ checkExistanceOfPerceivedSupportSystemState()

MentalSupportSystemState * InfoChunk::checkExistanceOfPerceivedSupportSystemState ( std::string  )

Definition at line 908 of file InfoChunk.cpp.

References perceived_support_system_state.

Referenced by ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorDM::infoChunking().

Here is the caller graph for this function:

◆ checkWhetherExpectedAlarmMatchObservation()

int InfoChunk::checkWhetherExpectedAlarmMatchObservation ( KBExpectedAlarmStateUnit *  _exp)

Definition at line 1051 of file InfoChunk.cpp.

References sim::State::Failed, KBExpectedAlarmStateUnit::getExpectedState(), KBElement::getInfoName(), sim::None, perceived_alarms, and sim::State::Succeed.

Referenced by ExpectationORUnit::assessExpectation().

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

◆ checkWhetherExpectedComponentStateMatchObservation()

int InfoChunk::checkWhetherExpectedComponentStateMatchObservation ( KBExpectedComponentStateUnit *  _exp)

Definition at line 1069 of file InfoChunk.cpp.

References sim::State::Failed, KBExpectedComponentStateUnit::getExpectedState(), KBElement::getInfoName(), sim::None, perceived_component_state, and sim::State::Succeed.

Referenced by ExpectationORUnit::assessExpectation().

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

◆ checkWhetherExpectedParameterDifferenceMatchObservation()

int InfoChunk::checkWhetherExpectedParameterDifferenceMatchObservation ( KBExpectedParameterDifferenceUnit *  _expd)

Definition at line 1150 of file InfoChunk.cpp.

References sim::State::Failed, KBExpectedParameterDifferenceUnit::first_indicator, KBElement::getInfoName(), KBExpectedParameterDifferenceUnit::getThresholdValueThatActivatesExpectation(), sim::None, perceived_parameter_value, KBExpectedParameterDifferenceUnit::second_indicator, and sim::State::Succeed.

Referenced by ExpectationORUnit::assessExpectation().

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

◆ checkWhetherExpectedParameterTrendMatchObservation()

int InfoChunk::checkWhetherExpectedParameterTrendMatchObservation ( KBExpectedParameterTrendUnit *  _exp)

Definition at line 1183 of file InfoChunk.cpp.

References checkWhetherExpectedParameterValueMatchObservation(), and sim::None.

Here is the call graph for this function:

◆ checkWhetherExpectedParameterValueMatchObservation()

int InfoChunk::checkWhetherExpectedParameterValueMatchObservation ( KBExpectedParameterValueUnit *  _exp)

Definition at line 1105 of file InfoChunk.cpp.

References AdsSimErr, sim::Compare::Between, SimulationContext::Branch_center, sim::Compare::EQ, sim::State::Failed, g_sim, sim::Compare::GE, KBExpectedParameterValueUnit::getExpectedValue1(), KBExpectedParameterValueUnit::getExpectedValue2(), KBElement::getInfoName(), KBExpectedParameterValueUnit::getLogicalRelation(), sim::Compare::GT, sim::Compare::LE, sim::Compare::LT, sim::None, perceived_parameter_value, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and sim::State::Succeed.

Referenced by ExpectationORUnit::assessExpectation(), and checkWhetherExpectedParameterTrendMatchObservation().

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

◆ checkWhetherExpectedSupportSystemStateMatchObservation()

int InfoChunk::checkWhetherExpectedSupportSystemStateMatchObservation ( KBExpectedSupportSystemStateUnit *  _exp)

Definition at line 1087 of file InfoChunk.cpp.

References sim::State::Failed, KBExpectedSupportSystemStateUnit::getExpectedState(), KBElement::getInfoName(), sim::None, perceived_support_system_state, and sim::State::Succeed.

Referenced by ExpectationORUnit::assessExpectation().

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

◆ clearInfoChunk()

◆ clearInfoChunkPointers()

void InfoChunk::clearInfoChunkPointers ( )

Definition at line 41 of file InfoChunk.cpp.

References action, action_objective, action_pack, diagnosis, goal, instinctive_response_procedure, mental_belief, perceived_alarms, perceived_component_state, perceived_parameter_trend, perceived_parameter_value, perceived_support_system_state, procedure_step, strategy, and subgoal.

Referenced by InfoChunkMental::clearInfoChunkMentalPointers().

Here is the caller graph for this function:

◆ copyInfoChunk()

void InfoChunk::copyInfoChunk ( InfoChunk &  _ic)

◆ diagnosisIsIncluded()

bool InfoChunk::diagnosisIsIncluded ( std::string  )

Definition at line 1275 of file InfoChunk.cpp.

References diagnosis.

◆ doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne()

string InfoChunk::doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne ( )

Definition at line 377 of file InfoChunk.cpp.

References sim::State::Active, AdsSimErr, SimulationContext::Branch_center, diagnosis, sim::State::Done, g_sim, sim::State::Pause, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Here is the call graph for this function:

◆ doneWithCurrentGoalAndGoForPreviouslyPausedOne()

int InfoChunk::doneWithCurrentGoalAndGoForPreviouslyPausedOne ( )

Definition at line 289 of file InfoChunk.cpp.

References sim::State::Active, AdsSimErr, SimulationContext::Branch_center, sim::State::Done, g_sim, goal, sim::State::Pause, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and sim::State::Unknown.

Here is the call graph for this function:

◆ doneWithCurrentStrategyAndGoForPreviouslyPausedOne()

int InfoChunk::doneWithCurrentStrategyAndGoForPreviouslyPausedOne ( )

Definition at line 333 of file InfoChunk.cpp.

References sim::State::Active, AdsSimErr, SimulationContext::Branch_center, sim::State::Done, g_sim, sim::State::Pause, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), strategy, and sim::State::Unknown.

Here is the call graph for this function:

◆ doneWithCurrentSubGoalAndGoForPreviouslyPausedOne()

int InfoChunk::doneWithCurrentSubGoalAndGoForPreviouslyPausedOne ( )

Definition at line 422 of file InfoChunk.cpp.

References sim::State::Active, AdsSimErr, SimulationContext::Branch_center, sim::State::Done, g_sim, sim::State::Pause, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), subgoal, and sim::State::Unknown.

Here is the call graph for this function:

◆ generateErrorMessage()

void InfoChunk::generateErrorMessage ( std::string  )

Definition at line 2176 of file InfoChunk.cpp.

References SimulationContext::Branch_center, g_sim, NoKB, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by retrieveInfoChunkFromFile().

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

◆ getActiveGoalPt()

DecisionGoal * InfoChunk::getActiveGoalPt ( )

Definition at line 2131 of file InfoChunk.cpp.

References sim::State::Active, and goal.

◆ getActiveStrategyPt()

DecisionStrategy * InfoChunk::getActiveStrategyPt ( )

Definition at line 2146 of file InfoChunk.cpp.

References sim::State::Active, and strategy.

◆ getActiveSubGoalPt()

DecisionSubGoal * InfoChunk::getActiveSubGoalPt ( )

Definition at line 2161 of file InfoChunk.cpp.

References sim::State::Active, and subgoal.

◆ getCurrentDiagnosis()

string InfoChunk::getCurrentDiagnosis ( )

Definition at line 125 of file InfoChunk.cpp.

References sim::State::Active, and diagnosis.

Referenced by OperatorDM::performRecoveryAction().

Here is the caller graph for this function:

◆ getCurrentGoal()

int InfoChunk::getCurrentGoal ( )

Definition at line 82 of file InfoChunk.cpp.

References sim::State::Active, goal, and sim::None.

Referenced by InfoChunkMental::calculatePriority(), OperatorDM::oneThroughProcessForBlockI(), pointToAvtiveGoalAndStrategy(), OperatorAT::selectGoal(), OperatorCT::selectGoal(), OperatorDM::selectGoal(), OperatorAT::selectStrategy(), OperatorDM::selectStrategy(), and TimeConstrainedModule::updateRawDataAndCalculateTimeToThreshold().

Here is the caller graph for this function:

◆ getCurrentInstinctiveResponseProceduralStepName()

string InfoChunk::getCurrentInstinctiveResponseProceduralStepName ( )

Definition at line 185 of file InfoChunk.cpp.

References sim::State::Active, instinctive_response_procedure, and procedure_step.

Referenced by Operator::interruptLowPriorityMentalProcedures(), OperatorAT::oneThroughProcessForBlockD(), and OperatorDM::oneThroughProcessForBlockD().

Here is the caller graph for this function:

◆ getCurrentInstinctiveResponseProcedureName()

string InfoChunk::getCurrentInstinctiveResponseProcedureName ( )

Definition at line 170 of file InfoChunk.cpp.

References sim::State::Active, instinctive_response_procedure, and procedure_step.

Referenced by Operator::interruptLowPriorityMentalProcedures(), OperatorAT::oneThroughProcessForBlockD(), and OperatorDM::oneThroughProcessForBlockD().

Here is the caller graph for this function:

◆ getCurrentInstinctiveResponseProcedurePtr()

DecisionProcedureStep * InfoChunk::getCurrentInstinctiveResponseProcedurePtr ( )

Definition at line 226 of file InfoChunk.cpp.

References sim::State::Active, and instinctive_response_procedure.

Referenced by OperatorDM::performRecoveryAction().

Here is the caller graph for this function:

◆ getCurrentProceduralStepName()

string InfoChunk::getCurrentProceduralStepName ( )

Definition at line 155 of file InfoChunk.cpp.

References sim::State::Active, and procedure_step.

Referenced by DiagnoseInvestigator::CheckforPotentialProcedureBranching(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), OperatorDM::selectStrategy(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().

Here is the caller graph for this function:

◆ getCurrentProcedureName()

string InfoChunk::getCurrentProcedureName ( )

Definition at line 140 of file InfoChunk.cpp.

References sim::State::Active, and procedure_step.

Referenced by DiagnoseInvestigator::CheckforPotentialProcedureBranching(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), OperatorDM::selectStrategy(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().

Here is the caller graph for this function:

◆ getCurrentProcedureStepPtr()

DecisionProcedureStep * InfoChunk::getCurrentProcedureStepPtr ( int  _operator)

Definition at line 201 of file InfoChunk.cpp.

References sim::State::Active, sim::State::Pause, and procedure_step.

Referenced by OperatorDM::performFollowProcedureStrategy(), DiagnoseInvestigator::ReadCurrentProcedureStepInformation(), and DiagnoseInvestigator::TerminateTheCurrentProcedureStep().

Here is the caller graph for this function:

◆ getCurrentStrategy()

int InfoChunk::getCurrentStrategy ( )

Definition at line 97 of file InfoChunk.cpp.

References sim::State::Active, sim::None, and strategy.

Referenced by OperatorAT::oneThroughProcessForBlockD(), OperatorDM::oneThroughProcessForBlockD(), pointToAvtiveGoalAndStrategy(), OperatorAT::selectStrategy(), and OperatorDM::selectStrategy().

Here is the caller graph for this function:

◆ getCurrentSubGoal()

int InfoChunk::getCurrentSubGoal ( )

Definition at line 111 of file InfoChunk.cpp.

References sim::State::Active, sim::None, and subgoal.

◆ getMentalPriorityOfAProcedureStep()

int InfoChunk::getMentalPriorityOfAProcedureStep ( std::string  ,
std::string   
)

Definition at line 1335 of file InfoChunk.cpp.

References instinctive_response_procedure, sim::None, and procedure_step.

Referenced by ProcedureStep::executeInstinctiveResponseProcedureTransfer().

Here is the caller graph for this function:

◆ getStateOfAProcedureStep()

int InfoChunk::getStateOfAProcedureStep ( std::string  ,
std::string   
)

Definition at line 1309 of file InfoChunk.cpp.

References instinctive_response_procedure, sim::None, and procedure_step.

Referenced by OperatorDM::performFollowProcedureStrategy().

Here is the caller graph for this function:

◆ getTotalNumberOfAlarmPerceived()

int InfoChunk::getTotalNumberOfAlarmPerceived ( )

Definition at line 72 of file InfoChunk.cpp.

References perceived_alarms.

Referenced by ShortTermMemory::getTotalNumberOfAlarmPerceived().

Here is the caller graph for this function:

◆ getTotalNumberOfFailedDiagnosis()

int InfoChunk::getTotalNumberOfFailedDiagnosis ( )

Definition at line 75 of file InfoChunk.cpp.

References diagnosis, and sim::State::Failed.

Referenced by ShortTermMemory::getTotalFailedDiagnosis().

Here is the caller graph for this function:

◆ getTotalPieceOfInfoPerceived()

int InfoChunk::getTotalPieceOfInfoPerceived ( )

Definition at line 58 of file InfoChunk.cpp.

References perceived_alarms, perceived_component_state, perceived_parameter_trend, and perceived_parameter_value.

Referenced by ShortTermMemory::getTotalPieceOfInfoPerceived().

Here is the caller graph for this function:

◆ getTotalWeightOfAlarmPerceived()

double InfoChunk::getTotalWeightOfAlarmPerceived ( )

Definition at line 64 of file InfoChunk.cpp.

References perceived_alarms.

Referenced by InfoChunkMental::calculatePriority(), and ShortTermMemory::getTotalWeightOfAlarmPerceived().

Here is the caller graph for this function:

◆ identifyTheMentalProcedureToBePerformed()

DecisionProcedureStep * InfoChunk::identifyTheMentalProcedureToBePerformed ( std::string  ,
std::string   
)

Definition at line 547 of file InfoChunk.cpp.

References sim::State::Active, sim::State::Done, instinctive_response_procedure, sim::None, and sim::State::Pause.

Referenced by Operator::performAMentalProcedure().

Here is the caller graph for this function:

◆ includeActiveDiagnosis()

bool InfoChunk::includeActiveDiagnosis ( )

Definition at line 536 of file InfoChunk.cpp.

References sim::State::Active, and diagnosis.

Referenced by InfoChunkMental::calculatePriority().

Here is the caller graph for this function:

◆ interruptCurrentAction()

void InfoChunk::interruptCurrentAction ( )

Definition at line 1026 of file InfoChunk.cpp.

References action, sim::State::Active, and sim::State::Pause.

◆ interruptCurrentActionObjective()

void InfoChunk::interruptCurrentActionObjective ( )

Definition at line 1004 of file InfoChunk.cpp.

References action_objective, sim::State::Active, and sim::State::Pause.

◆ interruptCurrentActionPack()

void InfoChunk::interruptCurrentActionPack ( )

Definition at line 1015 of file InfoChunk.cpp.

References action_pack, sim::State::Active, and sim::State::Pause.

◆ interruptCurrentDiagnosis()

void InfoChunk::interruptCurrentDiagnosis ( )

Definition at line 993 of file InfoChunk.cpp.

References sim::State::Active, diagnosis, and sim::State::Pause.

◆ interruptCurrentGoal()

void InfoChunk::interruptCurrentGoal ( )

Definition at line 960 of file InfoChunk.cpp.

References sim::State::Active, goal, and sim::State::Pause.

◆ interruptCurrentProcedureStep()

void InfoChunk::interruptCurrentProcedureStep ( )

Definition at line 1037 of file InfoChunk.cpp.

References sim::State::Active, sim::State::Pause, and procedure_step.

Referenced by ProcedureStep::executeInstinctiveResponseProcedureTransfer().

Here is the caller graph for this function:

◆ interruptCurrentStrategy()

void InfoChunk::interruptCurrentStrategy ( )

Definition at line 971 of file InfoChunk.cpp.

References sim::State::Active, sim::State::Pause, and strategy.

◆ interruptCurrentSubGoal()

void InfoChunk::interruptCurrentSubGoal ( )

Definition at line 982 of file InfoChunk.cpp.

References sim::State::Active, sim::State::Pause, and subgoal.

◆ isThereMentalProcedureWaitingForExecution()

bool InfoChunk::isThereMentalProcedureWaitingForExecution ( std::string  ,
std::string   
)

Definition at line 608 of file InfoChunk.cpp.

References sim::State::Active, instinctive_response_procedure, sim::None, sim::State::Pause, r5pars_, and sim::State::Waiting.

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

Here is the caller graph for this function:

◆ pauseCurrenDiagnosisAndAddANewOne()

void InfoChunk::pauseCurrenDiagnosisAndAddANewOne ( std::string  )

Definition at line 503 of file InfoChunk.cpp.

References sim::State::Active, addANewDiagnosis(), diagnosis, and sim::State::Pause.

Here is the call graph for this function:

◆ pauseCurrenGoalAndAddANewOne()

void InfoChunk::pauseCurrenGoalAndAddANewOne ( int  _goal)

Definition at line 467 of file InfoChunk.cpp.

References sim::State::Active, addANewGoal(), goal, and sim::State::Pause.

Here is the call graph for this function:

◆ pauseCurrenStrategyAndAddANewOne()

void InfoChunk::pauseCurrenStrategyAndAddANewOne ( int  _strategy)

Definition at line 479 of file InfoChunk.cpp.

References sim::State::Active, addANewStrategy(), sim::State::Pause, and strategy.

Here is the call graph for this function:

◆ pauseCurrenSubGoalAndAddANewOne()

void InfoChunk::pauseCurrenSubGoalAndAddANewOne ( int  _subgoal)

Definition at line 491 of file InfoChunk.cpp.

References sim::State::Active, addANewSubGoal(), sim::State::Pause, and subgoal.

Here is the call graph for this function:

◆ pointToAvtiveGoalAndStrategy()

void InfoChunk::pointToAvtiveGoalAndStrategy ( InfoChunk &  _perceived_info)

Definition at line 643 of file InfoChunk.cpp.

References sim::State::Active, AdsSimErr, SimulationContext::Branch_center, g_sim, getCurrentGoal(), getCurrentStrategy(), goal, sim::None, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and strategy.

Referenced by ShortTermMemory::getWorkingMemory().

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

◆ pointToTheNewAction()

void InfoChunk::pointToTheNewAction ( DecisionAction *  _pt)

Definition at line 769 of file InfoChunk.cpp.

References action, sim::State::Active, StateOfActivation::getStateOfActivation(), and sim::State::Pause.

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

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

◆ pointToTheNewActionObjective()

void InfoChunk::pointToTheNewActionObjective ( DecisionActionObjective *  _pt)

Definition at line 741 of file InfoChunk.cpp.

References action_objective, sim::State::Active, StateOfActivation::getStateOfActivation(), and sim::State::Pause.

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

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

◆ pointToTheNewActionPack()

void InfoChunk::pointToTheNewActionPack ( DecisionActionPack *  _pt)

Definition at line 755 of file InfoChunk.cpp.

References action_pack, sim::State::Active, StateOfActivation::getStateOfActivation(), and sim::State::Pause.

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

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

◆ pointToTheNewDiagnosis()

void InfoChunk::pointToTheNewDiagnosis ( DecisionDiagnosis *  _pt)

Definition at line 727 of file InfoChunk.cpp.

References sim::State::Active, diagnosis, StateOfActivation::getStateOfActivation(), and sim::State::Pause.

Here is the call graph for this function:

◆ pointToTheNewGoal()

void InfoChunk::pointToTheNewGoal ( DecisionGoal *  _pt)

Definition at line 685 of file InfoChunk.cpp.

References sim::State::Active, StateOfActivation::getStateOfActivation(), goal, and sim::State::Pause.

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

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

◆ pointToTheNewInstinctiveResponseProcedureStep()

void InfoChunk::pointToTheNewInstinctiveResponseProcedureStep ( DecisionProcedureStep *  _pt)

Definition at line 808 of file InfoChunk.cpp.

References sim::State::Active, StateOfActivation::getStateOfActivation(), instinctive_response_procedure, and sim::State::Pause.

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

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

◆ pointToTheNewProcedureStep()

void InfoChunk::pointToTheNewProcedureStep ( DecisionProcedureStep *  _pt)

Definition at line 783 of file InfoChunk.cpp.

References sim::State::Active, DecisionProcedureStep::getProcedureName(), StateOfActivation::getStateOfActivation(), DecisionProcedureStep::getStepName(), sim::State::Pause, and procedure_step.

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

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

◆ pointToTheNewStrategy()

void InfoChunk::pointToTheNewStrategy ( DecisionStrategy *  _pt)

Definition at line 699 of file InfoChunk.cpp.

References sim::State::Active, StateOfActivation::getStateOfActivation(), sim::State::Pause, and strategy.

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

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

◆ pointToTheNewSubGoal()

void InfoChunk::pointToTheNewSubGoal ( DecisionSubGoal *  _pt)

Definition at line 713 of file InfoChunk.cpp.

References sim::State::Active, StateOfActivation::getStateOfActivation(), sim::State::Pause, and subgoal.

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

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

◆ replaceObjecByPointerForGroupedInfoAction()

void InfoChunk::replaceObjecByPointerForGroupedInfoAction ( InfoChunk &  _ic)

Definition at line 1835 of file InfoChunk.cpp.

References action, AdsSimErr, SimulationContext::Branch_center, g_sim, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoActionObjective()

void InfoChunk::replaceObjecByPointerForGroupedInfoActionObjective ( InfoChunk &  _ic)

Definition at line 1766 of file InfoChunk.cpp.

References action_objective, AdsSimErr, SimulationContext::Branch_center, g_sim, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoActionPack()

void InfoChunk::replaceObjecByPointerForGroupedInfoActionPack ( InfoChunk &  _ic)

Definition at line 1801 of file InfoChunk.cpp.

References action_pack, AdsSimErr, SimulationContext::Branch_center, g_sim, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoAlarm()

void InfoChunk::replaceObjecByPointerForGroupedInfoAlarm ( InfoChunk &  _ic)

Definition at line 1938 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, perceived_alarms, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoAll()

◆ replaceObjecByPointerForGroupedInfoComponentState()

void InfoChunk::replaceObjecByPointerForGroupedInfoComponentState ( InfoChunk &  _ic)

Definition at line 1968 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, perceived_component_state, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoDiagnosis()

void InfoChunk::replaceObjecByPointerForGroupedInfoDiagnosis ( InfoChunk &  _ic)

Definition at line 1733 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, diagnosis, g_sim, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoGoal()

void InfoChunk::replaceObjecByPointerForGroupedInfoGoal ( InfoChunk &  _ic)

Definition at line 1631 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, goal, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoInstinctiveResponseProcedure()

void InfoChunk::replaceObjecByPointerForGroupedInfoInstinctiveResponseProcedure ( InfoChunk &  _ic)

Definition at line 1901 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, instinctive_response_procedure, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoMentalBelief()

void InfoChunk::replaceObjecByPointerForGroupedInfoMentalBelief ( InfoChunk &  _ic)

Definition at line 2100 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, mental_belief, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoParameterTrend()

void InfoChunk::replaceObjecByPointerForGroupedInfoParameterTrend ( InfoChunk &  _ic)

Definition at line 2067 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, perceived_parameter_trend, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoParameterValue()

void InfoChunk::replaceObjecByPointerForGroupedInfoParameterValue ( InfoChunk &  _ic)

Definition at line 2034 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, perceived_parameter_value, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoProcedureStep()

void InfoChunk::replaceObjecByPointerForGroupedInfoProcedureStep ( InfoChunk &  _ic)

Definition at line 1868 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, procedure_step, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoStrategy()

void InfoChunk::replaceObjecByPointerForGroupedInfoStrategy ( InfoChunk &  _ic)

Definition at line 1665 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and strategy.

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoSubGoal()

void InfoChunk::replaceObjecByPointerForGroupedInfoSubGoal ( InfoChunk &  _ic)

Definition at line 1699 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and subgoal.

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ replaceObjecByPointerForGroupedInfoSupportSystemState()

void InfoChunk::replaceObjecByPointerForGroupedInfoSupportSystemState ( InfoChunk &  _ic)

Definition at line 2001 of file InfoChunk.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, perceived_support_system_state, r5pars_, BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by replaceObjecByPointerForGroupedInfoAll().

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

◆ retrieveInfoChunkFromFile()

void InfoChunk::retrieveInfoChunkFromFile ( std::ifstream &  )

Definition at line 1430 of file InfoChunk.cpp.

References action, action_objective, action_pack, diagnosis, generateErrorMessage(), goal, instinctive_response_procedure, mental_belief, perceived_alarms, perceived_component_state, perceived_parameter_trend, perceived_parameter_value, perceived_support_system_state, procedure_step, strategy, and subgoal.

Referenced by InfoChunkMental::retrieveInfoChunkMentalFromFile(), and ShortTermMemory::retrieveShortTermMemoryFromFile().

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

◆ ReturnPositionOfOneMentalAlarmInTheVector()

int InfoChunk::ReturnPositionOfOneMentalAlarmInTheVector ( MentalAlarm *  _ma_pt)

Definition at line 2240 of file InfoChunk.cpp.

References perceived_alarms.

Referenced by ReasonMachine::CopyReasonMachineFromAnotherRM().

Here is the caller graph for this function:

◆ ReturnPositionOfOneMentalComponentStateInTheVector()

int InfoChunk::ReturnPositionOfOneMentalComponentStateInTheVector ( MentalComponentState *  _mc_pt)

Definition at line 2189 of file InfoChunk.cpp.

References perceived_component_state.

Referenced by ReasonMachine::CopyReasonMachineFromAnotherRM().

Here is the caller graph for this function:

◆ ReturnPositionOfOneMentalParameterValue()

int InfoChunk::ReturnPositionOfOneMentalParameterValue ( MentalParameterValue *  _mp_pt)

Definition at line 2223 of file InfoChunk.cpp.

References perceived_parameter_value.

Referenced by ReasonMachine::CopyReasonMachineFromAnotherRM().

Here is the caller graph for this function:

◆ ReturnPositionOfOneMentalSupportSystemStateInTheVector()

int InfoChunk::ReturnPositionOfOneMentalSupportSystemStateInTheVector ( MentalSupportSystemState *  _mss_pt)

Definition at line 2206 of file InfoChunk.cpp.

References perceived_support_system_state.

Referenced by ReasonMachine::CopyReasonMachineFromAnotherRM().

Here is the caller graph for this function:

◆ saveInfoChunkToFile()

void InfoChunk::saveInfoChunkToFile ( std::ofstream &  )

Definition at line 1361 of file InfoChunk.cpp.

References action, action_objective, action_pack, diagnosis, goal, instinctive_response_procedure, mental_belief, perceived_alarms, perceived_component_state, perceived_parameter_trend, perceived_parameter_value, perceived_support_system_state, procedure_step, strategy, and subgoal.

Referenced by InfoChunkMental::saveInfoChunkMentalToFile(), and ShortTermMemory::saveShortTermMemoryToFile().

Here is the caller graph for this function:

◆ serialize()

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

◆ setStateOfAProcedureStep()

void InfoChunk::setStateOfAProcedureStep ( std::string  ,
std::string  ,
int   
)

Definition at line 1286 of file InfoChunk.cpp.

References instinctive_response_procedure, and procedure_step.

Referenced by Operator::checkAndResetProcedureStep(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ProcedureStep::oneThroughProcessForInstinctiveResponseProcedure(), and ProcedureStep::oneThroughProcessForProcedureStep().

Here is the caller graph for this function:

◆ updateActionState()

void InfoChunk::updateActionState ( std::string  ,
int   
)

Definition at line 822 of file InfoChunk.cpp.

References action.

Member Data Documentation

◆ action

◆ action_objective

◆ action_pack

◆ diagnosis

◆ goal

◆ instinctive_response_procedure

◆ mental_belief

◆ perceived_alarms

◆ perceived_component_state

◆ perceived_parameter_trend

◆ perceived_parameter_value

◆ perceived_support_system_state

◆ procedure_step

◆ strategy

◆ subgoal


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