← Documentation
ADS-IDAC Engine 5.0.0
KBExpectedComponentStateUnit Class Reference

#include <KBExpectedComponentStateUnit.h>

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

Public Member Functions

 KBExpectedComponentStateUnit ()
 
virtual ~KBExpectedComponentStateUnit ()
 
void setExpectedState (int)
 
void readInfoFromFile (std::ifstream &)
 
int getExpectedState ()
 
int checkForMatch (std::string, int)
 
void copyKBExpectedComponentStateUnit (KBExpectedComponentStateUnit &)
 
void saveKBExpectedComponentStateUnitToFile (std::ofstream &)
 
void retrieveKBExpectedComponentStateUnitFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from KBElement
 KBElement ()
 
virtual ~KBElement ()
 
void setInfoName (std::string)
 
std::string getInfoName ()
 
void readInfoFromFile (std::ifstream &)
 
void copyKBElement (KBElement &)
 
void saveKBElementToFile (std::ofstream &)
 
void retrieveKBElementFromFile (std::ifstream &)
 
bool checkIfIsIdenticalKBElement (KBElement &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from ExpectationElement
virtual void state_save (boost::archive::binary_oarchive &ar) const
 
virtual void state_load (boost::archive::binary_iarchive &ar)
 
 ExpectationElement ()
 
virtual ~ExpectationElement ()
 
void setStateOfExpectation (int)
 
int getStateOfExpectation ()
 
int updateExpectation (int)
 
void copyExpectationElement (ExpectationElement &)
 
void setTypeOfExpectation (int)
 
int getTypeOfExpectation ()
 
void saveExpectationElementToFile (std::ofstream &)
 
void retrieveExpectationElementFromFile (std::ifstream &)
 
bool checkIfIsIdenticalExpectationElement (ExpectationElement &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int expected_state
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Public Attributes inherited from KBElement
std::string info_name
 

Detailed Description

Definition at line 16 of file KBExpectedComponentStateUnit.h.

Constructor & Destructor Documentation

◆ KBExpectedComponentStateUnit()

KBExpectedComponentStateUnit::KBExpectedComponentStateUnit ( )

Definition at line 19 of file KBExpectedComponentStateUnit.cpp.

References sim::Comm::ComponentState, expected_state, sim::None, ExpectationElement::setStateOfExpectation(), and ExpectationElement::setTypeOfExpectation().

Here is the call graph for this function:

◆ ~KBExpectedComponentStateUnit()

KBExpectedComponentStateUnit::~KBExpectedComponentStateUnit ( )
virtual

Definition at line 26 of file KBExpectedComponentStateUnit.cpp.

Member Function Documentation

◆ checkForMatch()

int KBExpectedComponentStateUnit::checkForMatch ( std::string  ,
int   
)

Definition at line 35 of file KBExpectedComponentStateUnit.cpp.

References expected_state, sim::State::Failed, KBElement::getInfoName(), sim::State::Succeed, and ExpectationElement::updateExpectation().

Here is the call graph for this function:

◆ copyKBExpectedComponentStateUnit()

void KBExpectedComponentStateUnit::copyKBExpectedComponentStateUnit ( KBExpectedComponentStateUnit &  _ecp)

Definition at line 51 of file KBExpectedComponentStateUnit.cpp.

References ExpectationElement::copyExpectationElement(), KBElement::copyKBElement(), expected_state, and getExpectedState().

Referenced by ExpectationORUnit::assessExpectation(), DecisionExpectedComponentState::copyDecisionExpectedComponentState(), and ProcedureExpectedComponentStateUnit::copyProcedureExpectedComponentStateUnit().

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

◆ getExpectedState()

int KBExpectedComponentStateUnit::getExpectedState ( )

Definition at line 57 of file KBExpectedComponentStateUnit.cpp.

References expected_state.

Referenced by ExpectationORUnit::assessExpectation(), InfoChunk::checkWhetherExpectedComponentStateMatchObservation(), copyKBExpectedComponentStateUnit(), BranchExpectedComponentState::saveInfoToFile(), and BranchExpectedComponentState::translateMessage().

Here is the caller graph for this function:

◆ readInfoFromFile()

void KBExpectedComponentStateUnit::readInfoFromFile ( std::ifstream &  )

Definition at line 31 of file KBExpectedComponentStateUnit.cpp.

References expected_state, and KBElement::readInfoFromFile().

Here is the call graph for this function:

◆ retrieveKBExpectedComponentStateUnitFromFile()

void KBExpectedComponentStateUnit::retrieveKBExpectedComponentStateUnitFromFile ( std::ifstream &  )

Definition at line 63 of file KBExpectedComponentStateUnit.cpp.

References SimulationContext::Branch_center, expected_state, g_sim, NoKB, r5pars_, ExpectationElement::retrieveExpectationElementFromFile(), KBElement::retrieveKBElementFromFile(), BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by DecisionExpectedComponentState::retrieveDecisionExpectedComponentStateFromFile(), and ProcedureExpectedComponentStateUnit::retrieveProcedureExpectedComponentStateUnitFromFile().

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

◆ saveKBExpectedComponentStateUnitToFile()

void KBExpectedComponentStateUnit::saveKBExpectedComponentStateUnitToFile ( std::ofstream &  )

Definition at line 58 of file KBExpectedComponentStateUnit.cpp.

References expected_state, ExpectationElement::saveExpectationElementToFile(), and KBElement::saveKBElementToFile().

Referenced by DecisionExpectedComponentState::saveDecisionExpectedComponentStateToFile(), and ProcedureExpectedComponentStateUnit::saveProcedureExpectedComponentStateUnitToFile().

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

◆ serialize()

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

Definition at line 31 of file KBExpectedComponentStateUnit.h.

References expected_state.

◆ setExpectedState()

void KBExpectedComponentStateUnit::setExpectedState ( int  n)

Definition at line 30 of file KBExpectedComponentStateUnit.cpp.

References expected_state.

Referenced by ExpectationORUnit::assessExpectation(), ProcedureExpectedComponentStateUnit::readInfoFromFile(), and ProcedureExpectedComponentStateUnit::readInfoFromFileWithoutInfoName().

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 29 of file KBExpectedComponentStateUnit.h.

Member Data Documentation

◆ expected_state


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