← Documentation
ADS-IDAC Engine 5.0.0
HardWiredMentalBelief Class Reference

#include <HardWiredMentalBelief.h>

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

Public Member Functions

 HardWiredMentalBelief ()
 
virtual ~HardWiredMentalBelief ()
 
void copyHardWiredMentalBelief (HardWiredMentalBelief &)
 
void readInfoFromFile (std::ifstream &)
 
int checkForMatch (std::string, int)
 
void setExpectedState (int)
 
int getExpectedState ()
 
void saveHardWiredMentalBeliefToFile (std::ofstream &)
 
void retrieveHardWiredMentalBeliefFromFile (std::ifstream &)
 
- 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 Member Functions

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 20 of file HardWiredMentalBelief.h.

Constructor & Destructor Documentation

◆ HardWiredMentalBelief()

HardWiredMentalBelief::HardWiredMentalBelief ( )

Definition at line 19 of file HardWiredMentalBelief.cpp.

References expected_state, sim::Branch::MentalBelief, sim::None, and ExpectationElement::setTypeOfExpectation().

Here is the call graph for this function:

◆ ~HardWiredMentalBelief()

HardWiredMentalBelief::~HardWiredMentalBelief ( )
virtual

Definition at line 25 of file HardWiredMentalBelief.cpp.

Member Function Documentation

◆ checkForMatch()

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

Definition at line 39 of file HardWiredMentalBelief.cpp.

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

Here is the call graph for this function:

◆ copyHardWiredMentalBelief()

void HardWiredMentalBelief::copyHardWiredMentalBelief ( HardWiredMentalBelief &  _hmb)

Definition at line 29 of file HardWiredMentalBelief.cpp.

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

Here is the call graph for this function:

◆ getExpectedState()

int HardWiredMentalBelief::getExpectedState ( )

Definition at line 56 of file HardWiredMentalBelief.cpp.

References expected_state.

Referenced by checkForMatch(), and copyHardWiredMentalBelief().

Here is the caller graph for this function:

◆ readInfoFromFile()

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

Definition at line 34 of file HardWiredMentalBelief.cpp.

References expected_state, and KBElement::setInfoName().

Here is the call graph for this function:

◆ retrieveHardWiredMentalBeliefFromFile()

void HardWiredMentalBelief::retrieveHardWiredMentalBeliefFromFile ( std::ifstream &  )

Definition at line 62 of file HardWiredMentalBelief.cpp.

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

Here is the call graph for this function:

◆ saveHardWiredMentalBeliefToFile()

void HardWiredMentalBelief::saveHardWiredMentalBeliefToFile ( std::ofstream &  )

Definition at line 57 of file HardWiredMentalBelief.cpp.

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

Here is the call graph for this function:

◆ serialize()

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

Definition at line 42 of file HardWiredMentalBelief.h.

References expected_state.

◆ setExpectedState()

void HardWiredMentalBelief::setExpectedState ( int  n)

Definition at line 55 of file HardWiredMentalBelief.cpp.

References expected_state.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 39 of file HardWiredMentalBelief.h.

Member Data Documentation

◆ expected_state


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