← Documentation
ADS-IDAC Engine 5.0.0
EventSymptomMatrix Class Reference

#include <EventSymptomMatrix.h>

Public Member Functions

void state_save (boost::archive::binary_oarchive &ar) const
 
void state_load (boost::archive::binary_iarchive &ar)
 
 EventSymptomMatrix ()
 
virtual ~EventSymptomMatrix ()
 
void clearEventSymptomMatrix ()
 
void readInfoFromFile (std::string)
 
void setNumSymptom (int)
 
void setNumEvent (int)
 
void setAbnormalConfidence (double)
 
int getNumSymptom ()
 
int getNumEvent ()
 
double getAbnormalConfidence ()
 
double getEventRationalConfidence (std::string)
 
void updateBothRationalConfidence (KB &)
 
void updateRationalSymptomConfidence (KB &)
 
void updatePerceivedSymptomConfidence ()
 
void updateRationalEventConfidence ()
 
void updatePerceivedEventConfidence ()
 
void outputEventSymptomMatrixLabelToFile (std::string, std::ofstream &)
 
void outputEventSymptomMatrixUnitToFile (std::ofstream &)
 
void copyEventSymptomMatrix (EventSymptomMatrix &)
 
void saveEventSymptomMatrixToFile (std::ofstream &)
 
void retrieveEventSymptomMatrixFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< std::unique_ptr< SymptomUnit > > symptoms
 
std::vector< std::unique_ptr< DiagnosisEventUnit > > events
 

Private Attributes

int num_symptom
 
int num_event
 
double abnormal_confidence
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 26 of file EventSymptomMatrix.h.

Constructor & Destructor Documentation

◆ EventSymptomMatrix()

EventSymptomMatrix::EventSymptomMatrix ( )

Definition at line 39 of file EventSymptomMatrix.cpp.

References abnormal_confidence, num_event, and num_symptom.

◆ ~EventSymptomMatrix()

EventSymptomMatrix::~EventSymptomMatrix ( )
virtual

Definition at line 46 of file EventSymptomMatrix.cpp.

References clearEventSymptomMatrix().

Here is the call graph for this function:

Member Function Documentation

◆ clearEventSymptomMatrix()

void EventSymptomMatrix::clearEventSymptomMatrix ( )

Definition at line 50 of file EventSymptomMatrix.cpp.

References abnormal_confidence, events, num_event, num_symptom, and symptoms.

Referenced by Operator::clearOperatorFinal(), Operator::clearOperatorForRestart(), Operator::clearOperatorFromRestartInfo(), Operator::seedDiagnosisMatrixFromMaster(), and ~EventSymptomMatrix().

Here is the caller graph for this function:

◆ copyEventSymptomMatrix()

void EventSymptomMatrix::copyEventSymptomMatrix ( EventSymptomMatrix &  _esm)

Definition at line 240 of file EventSymptomMatrix.cpp.

References abnormal_confidence, events, getAbnormalConfidence(), getNumEvent(), getNumSymptom(), num_event, num_symptom, and symptoms.

Referenced by Operator::copyOperatorFromRestartInfo(), Operator::copyOperatorFromRestartInfoMultiProcessor(), Operator::copyOperatorToRestartInfo(), and Operator::seedDiagnosisMatrixFromMaster().

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

◆ getAbnormalConfidence()

double EventSymptomMatrix::getAbnormalConfidence ( )

Definition at line 63 of file EventSymptomMatrix.cpp.

References abnormal_confidence.

Referenced by copyEventSymptomMatrix(), OperatorAT::oneThroughProcessForBlockI(), and OperatorDM::oneThroughProcessForBlockI().

Here is the caller graph for this function:

◆ getEventRationalConfidence()

double EventSymptomMatrix::getEventRationalConfidence ( std::string  )

Definition at line 177 of file EventSymptomMatrix.cpp.

References events, and r5pars_.

Referenced by Operator::checkItemRelevanceToCurrentDiagnosis(), and DiagnosisActionModule::getPtrToHighPriorityDiagnosisActionUnit().

Here is the caller graph for this function:

◆ getNumEvent()

int EventSymptomMatrix::getNumEvent ( )

Definition at line 62 of file EventSymptomMatrix.cpp.

References num_event.

Referenced by copyEventSymptomMatrix().

Here is the caller graph for this function:

◆ getNumSymptom()

int EventSymptomMatrix::getNumSymptom ( )

Definition at line 61 of file EventSymptomMatrix.cpp.

References num_symptom.

Referenced by copyEventSymptomMatrix().

Here is the caller graph for this function:

◆ outputEventSymptomMatrixLabelToFile()

void EventSymptomMatrix::outputEventSymptomMatrixLabelToFile ( std::string  ,
std::ofstream &   
)

Definition at line 214 of file EventSymptomMatrix.cpp.

References events, and symptoms.

Referenced by KeyParameterHistoryUnit::outputDiagnosisLabelToFile().

Here is the caller graph for this function:

◆ outputEventSymptomMatrixUnitToFile()

void EventSymptomMatrix::outputEventSymptomMatrixUnitToFile ( std::ofstream &  )

Definition at line 229 of file EventSymptomMatrix.cpp.

References events, and symptoms.

Referenced by KeyParameterHistoryUnit::outputDiagnosisUnitToFile().

Here is the caller graph for this function:

◆ readInfoFromFile()

void EventSymptomMatrix::readInfoFromFile ( std::string  )

Definition at line 64 of file EventSymptomMatrix.cpp.

References SimulationContext::Branch_center, events, g_sim, NoKB, num_event, num_symptom, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and symptoms.

Referenced by Operator::initiationForSimulation().

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

◆ retrieveEventSymptomMatrixFromFile()

void EventSymptomMatrix::retrieveEventSymptomMatrixFromFile ( std::ifstream &  )

Definition at line 271 of file EventSymptomMatrix.cpp.

References abnormal_confidence, SimulationContext::Branch_center, events, g_sim, NoKB, num_event, num_symptom, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and symptoms.

Referenced by Operator::retrieveOperatorFromFile().

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

◆ saveEventSymptomMatrixToFile()

void EventSymptomMatrix::saveEventSymptomMatrixToFile ( std::ofstream &  )

Definition at line 256 of file EventSymptomMatrix.cpp.

References abnormal_confidence, events, num_event, num_symptom, and symptoms.

Referenced by Operator::saveOperatorToFile().

Here is the caller graph for this function:

◆ serialize()

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

Definition at line 62 of file EventSymptomMatrix.h.

References abnormal_confidence, events, num_event, num_symptom, and symptoms.

◆ setAbnormalConfidence()

void EventSymptomMatrix::setAbnormalConfidence ( double  x)

Definition at line 60 of file EventSymptomMatrix.cpp.

References abnormal_confidence.

◆ setNumEvent()

void EventSymptomMatrix::setNumEvent ( int  n)

Definition at line 59 of file EventSymptomMatrix.cpp.

References num_event.

◆ setNumSymptom()

void EventSymptomMatrix::setNumSymptom ( int  n)

Definition at line 58 of file EventSymptomMatrix.cpp.

References num_symptom.

◆ state_load()

void EventSymptomMatrix::state_load ( boost::archive::binary_iarchive &  ar)

Definition at line 24 of file EventSymptomMatrix.cpp.

References abnormal_confidence, e, events, and symptoms.

Referenced by Operator::serialize().

Here is the caller graph for this function:

◆ state_save()

void EventSymptomMatrix::state_save ( boost::archive::binary_oarchive &  ar) const

Definition at line 17 of file EventSymptomMatrix.cpp.

References abnormal_confidence, e, events, and symptoms.

Referenced by Operator::serialize().

Here is the caller graph for this function:

◆ updateBothRationalConfidence()

void EventSymptomMatrix::updateBothRationalConfidence ( KB &  _kb)

Definition at line 209 of file EventSymptomMatrix.cpp.

References updateRationalEventConfidence(), and updateRationalSymptomConfidence().

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

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

◆ updatePerceivedEventConfidence()

void EventSymptomMatrix::updatePerceivedEventConfidence ( )

Definition at line 206 of file EventSymptomMatrix.cpp.

◆ updatePerceivedSymptomConfidence()

void EventSymptomMatrix::updatePerceivedSymptomConfidence ( )

Definition at line 204 of file EventSymptomMatrix.cpp.

◆ updateRationalEventConfidence()

void EventSymptomMatrix::updateRationalEventConfidence ( )

Definition at line 128 of file EventSymptomMatrix.cpp.

References abnormal_confidence, events, DiagnosisEventUnit::getCategoryName(), DiagnosisEventUnit::getConfidence(), DiagnosisEventUnit::setConfidence(), DiagnosisEventUnit::setLowerBound(), DiagnosisEventUnit::setUpperBound(), DiagnosisEventUnit::symptom_event_relationship, and symptoms.

Referenced by updateBothRationalConfidence().

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

◆ updateRationalSymptomConfidence()

void EventSymptomMatrix::updateRationalSymptomConfidence ( KB &  _kb)

Definition at line 96 of file EventSymptomMatrix.cpp.

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

Referenced by updateBothRationalConfidence().

Here is the call graph for this function:
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 60 of file EventSymptomMatrix.h.

Member Data Documentation

◆ abnormal_confidence

◆ events

◆ num_event

◆ num_symptom

◆ symptoms


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