← Documentation
ADS-IDAC Engine 5.0.0
InfoChunkMental Class Reference

#include <InfoChunkMental.h>

Inheritance diagram for InfoChunkMental:
[legend]
Collaboration diagram for InfoChunkMental:
[legend]

Public Member Functions

 InfoChunkMental ()
 
virtual ~InfoChunkMental ()
 
void setPriority (double)
 
double getPriority ()
 
void calculatePriority ()
 
bool checkWhetherSubSystemIsIncluded (int)
 
int getRelatedSubSystem (int)
 
void copyInfoChunkMental (InfoChunkMental &)
 
void clearInfoChunkMentalPointers ()
 
void clearInfoChunkMental ()
 
void saveInfoChunkMentalToFile (std::ofstream &)
 
void retrieveInfoChunkMentalFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from InfoChunk
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 Member Functions inherited from StateOfActivation
 StateOfActivation ()
 
virtual ~StateOfActivation ()
 
int getStateOfActivation ()
 
void setStateOfActivation (int)
 
void copyStateOfActivation (StateOfActivation &)
 
void saveStateOfActivationToFile (std::ofstream &)
 
void retrieveStateOfActivationFromFile (std::ifstream &)
 
void resetStateOfActivation ()
 
bool checkIfIsIdenticalStateOfActivation (StateOfActivation &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::list< int > related_subsystem
 
- Public Attributes inherited from InfoChunk
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
 

Private Attributes

double priority
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 15 of file InfoChunkMental.h.

Constructor & Destructor Documentation

◆ InfoChunkMental()

InfoChunkMental::InfoChunkMental ( )

Definition at line 20 of file InfoChunkMental.cpp.

References priority.

◆ ~InfoChunkMental()

InfoChunkMental::~InfoChunkMental ( )
virtual

Definition at line 25 of file InfoChunkMental.cpp.

Member Function Documentation

◆ calculatePriority()

void InfoChunkMental::calculatePriority ( )

Definition at line 28 of file InfoChunkMental.cpp.

References sim::State::Active, sim::State::Done, InfoChunk::getCurrentGoal(), StateOfActivation::getStateOfActivation(), InfoChunk::getTotalWeightOfAlarmPerceived(), InfoChunk::includeActiveDiagnosis(), sim::Goal::NormalOp, sim::State::Pause, priority, and StateOfActivation::setStateOfActivation().

Referenced by ShortTermMemory::calculatePriorityAndSetStateOfActivation().

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

◆ checkWhetherSubSystemIsIncluded()

bool InfoChunkMental::checkWhetherSubSystemIsIncluded ( int  n)

Definition at line 55 of file InfoChunkMental.cpp.

References related_subsystem.

◆ clearInfoChunkMental()

void InfoChunkMental::clearInfoChunkMental ( )

Definition at line 46 of file InfoChunkMental.cpp.

References InfoChunk::clearInfoChunk(), and related_subsystem.

Here is the call graph for this function:

◆ clearInfoChunkMentalPointers()

void InfoChunkMental::clearInfoChunkMentalPointers ( )

Definition at line 50 of file InfoChunkMental.cpp.

References InfoChunk::clearInfoChunkPointers(), and related_subsystem.

Here is the call graph for this function:

◆ copyInfoChunkMental()

void InfoChunkMental::copyInfoChunkMental ( InfoChunkMental &  _icm)

Definition at line 78 of file InfoChunkMental.cpp.

References InfoChunk::copyInfoChunk(), StateOfActivation::copyStateOfActivation(), getPriority(), priority, and related_subsystem.

Here is the call graph for this function:

◆ getPriority()

double InfoChunkMental::getPriority ( )

Definition at line 45 of file InfoChunkMental.cpp.

References priority.

Referenced by copyInfoChunkMental(), and ShortTermMemory::getWorkingMemory().

Here is the caller graph for this function:

◆ getRelatedSubSystem()

int InfoChunkMental::getRelatedSubSystem ( int  n)

Definition at line 64 of file InfoChunkMental.cpp.

References related_subsystem.

◆ retrieveInfoChunkMentalFromFile()

void InfoChunkMental::retrieveInfoChunkMentalFromFile ( std::ifstream &  )

Definition at line 98 of file InfoChunkMental.cpp.

References SimulationContext::Branch_center, g_sim, NoKB, priority, r5pars_, related_subsystem, InfoChunk::retrieveInfoChunkFromFile(), StateOfActivation::retrieveStateOfActivationFromFile(), BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Here is the call graph for this function:

◆ saveInfoChunkMentalToFile()

void InfoChunkMental::saveInfoChunkMentalToFile ( std::ofstream &  )

Definition at line 87 of file InfoChunkMental.cpp.

References priority, related_subsystem, InfoChunk::saveInfoChunkToFile(), and StateOfActivation::saveStateOfActivationToFile().

Here is the call graph for this function:

◆ serialize()

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

Definition at line 35 of file InfoChunkMental.h.

References priority, and related_subsystem.

◆ setPriority()

void InfoChunkMental::setPriority ( double  x)

Definition at line 44 of file InfoChunkMental.cpp.

References priority.

Referenced by ShortTermMemory::copyShortTermMemoryFromRestartInfo().

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 33 of file InfoChunkMental.h.

Member Data Documentation

◆ priority

◆ related_subsystem


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