← Documentation
ADS-IDAC Engine 5.0.0
KBExpectedSupportSystemStateUnit Class Reference

#include <KBExpectedSupportSystemStateUnit.h>

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

Public Member Functions

 KBExpectedSupportSystemStateUnit ()
 
virtual ~KBExpectedSupportSystemStateUnit ()
 
void setExpectedState (int)
 
void readInfoFromFile (std::ifstream &)
 
int getExpectedState ()
 
int checkForMatch (std::string, int)
 
void copyKBExpectedSupportSystemStateUnit (KBExpectedSupportSystemStateUnit &)
 
void saveKBExpectedSupportSystemStateUnitToFile (std::ofstream &)
 
void retrieveKBExpectedSupportSystemStateUnitFromFile (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 14 of file KBExpectedSupportSystemStateUnit.h.

Constructor & Destructor Documentation

◆ KBExpectedSupportSystemStateUnit()

KBExpectedSupportSystemStateUnit::KBExpectedSupportSystemStateUnit ( )

Definition at line 11 of file KBExpectedSupportSystemStateUnit.cpp.

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

Here is the call graph for this function:

◆ ~KBExpectedSupportSystemStateUnit()

KBExpectedSupportSystemStateUnit::~KBExpectedSupportSystemStateUnit ( )
virtual

Definition at line 17 of file KBExpectedSupportSystemStateUnit.cpp.

Member Function Documentation

◆ checkForMatch()

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

Definition at line 26 of file KBExpectedSupportSystemStateUnit.cpp.

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

Here is the call graph for this function:

◆ copyKBExpectedSupportSystemStateUnit()

void KBExpectedSupportSystemStateUnit::copyKBExpectedSupportSystemStateUnit ( KBExpectedSupportSystemStateUnit &  _essp)

Definition at line 41 of file KBExpectedSupportSystemStateUnit.cpp.

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

Referenced by ExpectationORUnit::assessExpectation(), DecisionExpectedSupportSystemState::copyDecisionExpectedSupportSystemState(), and ProcedureExpectedSupportSystemStateUnit::copyProcedureExpectedSupportSystemStateUnit().

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

◆ getExpectedState()

int KBExpectedSupportSystemStateUnit::getExpectedState ( )

Definition at line 47 of file KBExpectedSupportSystemStateUnit.cpp.

References expected_state.

Referenced by ExpectationORUnit::assessExpectation(), InfoChunk::checkWhetherExpectedSupportSystemStateMatchObservation(), copyKBExpectedSupportSystemStateUnit(), BranchExpectedSupportSystemState::saveInfoToFile(), and BranchExpectedSupportSystemState::translateMessage().

Here is the caller graph for this function:

◆ readInfoFromFile()

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

Definition at line 22 of file KBExpectedSupportSystemStateUnit.cpp.

References expected_state, and KBElement::readInfoFromFile().

Here is the call graph for this function:

◆ retrieveKBExpectedSupportSystemStateUnitFromFile()

void KBExpectedSupportSystemStateUnit::retrieveKBExpectedSupportSystemStateUnitFromFile ( std::ifstream &  )

Definition at line 53 of file KBExpectedSupportSystemStateUnit.cpp.

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

Referenced by DecisionExpectedSupportSystemState::retrieveDecisionExpectedSupportSystemStateFromFile(), and ProcedureExpectedSupportSystemStateUnit::retrieveProcedureExpectedSupportSystemStateUnitFromFile().

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

◆ saveKBExpectedSupportSystemStateUnitToFile()

void KBExpectedSupportSystemStateUnit::saveKBExpectedSupportSystemStateUnitToFile ( std::ofstream &  )

Definition at line 48 of file KBExpectedSupportSystemStateUnit.cpp.

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

Referenced by DecisionExpectedSupportSystemState::saveDecisionExpectedSupportSystemStateToFile(), and ProcedureExpectedSupportSystemStateUnit::saveProcedureExpectedSupportSystemStateUnitToFile().

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

◆ serialize()

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

Definition at line 31 of file KBExpectedSupportSystemStateUnit.h.

References expected_state.

◆ setExpectedState()

void KBExpectedSupportSystemStateUnit::setExpectedState ( int  n)

Definition at line 21 of file KBExpectedSupportSystemStateUnit.cpp.

References expected_state.

Referenced by ExpectationORUnit::assessExpectation(), ProcedureExpectedSupportSystemStateUnit::readInfoFromFile(), and ProcedureExpectedSupportSystemStateUnit::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 KBExpectedSupportSystemStateUnit.h.

Member Data Documentation

◆ expected_state


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