← Documentation
ADS-IDAC Engine 5.0.0
ExpectationORUnit Class Reference

#include <ExpectationORUnit.h>

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

Public Member Functions

void state_save (boost::archive::binary_oarchive &ar) const
 
void state_load (boost::archive::binary_iarchive &ar)
 
 ExpectationORUnit ()
 
virtual ~ExpectationORUnit ()
 
void add (ExpectationElement *)
 
void copyExpectationORUnit (ExpectationORUnit &)
 
bool assessExpectation (Operator &, ShortTermMemory &, int)
 
void saveExpectationORUnitToFile (std::ofstream &)
 
void retrieveExpectationORUnitFromFile (std::ifstream &)
 
- 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::vector< std::unique_ptr< ExpectationElement > > expectation_OR
 

Private Member Functions

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

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 22 of file ExpectationORUnit.h.

Constructor & Destructor Documentation

◆ ExpectationORUnit()

ExpectationORUnit::ExpectationORUnit ( )

Definition at line 25 of file ExpectationORUnit.cpp.

◆ ~ExpectationORUnit()

ExpectationORUnit::~ExpectationORUnit ( )
virtual

Definition at line 28 of file ExpectationORUnit.cpp.

Member Function Documentation

◆ add()

void ExpectationORUnit::add ( ExpectationElement *  _pt)

Definition at line 31 of file ExpectationORUnit.cpp.

References expectation_OR.

Referenced by DiagnosisComponentActionUnit::readDiagnosisComponentPrerequisiteFromFile(), and ProcedureStepUnit::readInfofromFileExpectation().

Here is the caller graph for this function:

◆ assessExpectation()

bool ExpectationORUnit::assessExpectation ( Operator &  _operator,
ShortTermMemory &  _stm,
int  _entry 
)

Definition at line 80 of file ExpectationORUnit.cpp.

References sim::State::Active, BranchRecord::addAlarmState(), BranchRecord::addComponentState(), BranchRecord::addMentalBelief(), BranchRecord::addParameterDifference(), BranchRecord::addParameterValue(), BranchRecord::addSupportSystemState(), AdsSimErr, ShortTermMemory::alarm_update_time, sim::Comm::AlarmState, SimulationContext::Branch_center, Timer::calculateRequiredTime(), InfoChunk::checkExistanceOfMentalBelief(), InfoChunk::checkExistanceOfPerceivedAlarms(), InfoChunk::checkExistanceOfPerceivedComponentState(), InfoChunk::checkExistanceOfPerceivedParameterValue(), InfoChunk::checkExistanceOfPerceivedSupportSystemState(), InfoChunk::checkWhetherExpectedAlarmMatchObservation(), InfoChunk::checkWhetherExpectedComponentStateMatchObservation(), InfoChunk::checkWhetherExpectedParameterDifferenceMatchObservation(), InfoChunk::checkWhetherExpectedParameterValueMatchObservation(), InfoChunk::checkWhetherExpectedSupportSystemStateMatchObservation(), ShortTermMemory::component_update_time, sim::Comm::ComponentState, ExpectedMentalBelief::copyExpectedMentalBelief(), KBExpectedAlarmStateUnit::copyKBExpectedAlarmStateUnit(), KBExpectedComponentStateUnit::copyKBExpectedComponentStateUnit(), KBExpectedParameterDifferenceUnit::copyKBExpectedParameterDifferenceUnit(), KBExpectedParameterValueUnit::copyKBExpectedParameterValueUnit(), KBExpectedSupportSystemStateUnit::copyKBExpectedSupportSystemStateUnit(), MentalAlarm::copyMentalAlarm(), MentalComponentState::copyMentalComponentState(), MentalParameterValue::copyMentalParameterValue(), MentalSupportSystemState::copyMentalSupportSystemState(), Timer::copyTimer(), expectation_OR, sim::State::Failed, KBExpectedParameterDifferenceUnit::first_indicator, DecisionExpectedParameterDifference::first_mental_parameter, g_sim, DisplayElement::getDisplayName(), KBExpectedAlarmStateUnit::getExpectedState(), KBExpectedComponentStateUnit::getExpectedState(), KBExpectedSupportSystemStateUnit::getExpectedState(), ExpectedMentalBelief::getExpectedState(), ShortTermMemory::getInfoGatherMode(), KBElement::getInfoName(), HumanFailureEventsBBN::getMentalProcedureFailureProbability(), MentalAlarm::getObservedAlarmState(), MentalComponentState::getObservedComponentState(), MentalSupportSystemState::getObservedSupportSystemState(), HumanFailureEventsBBN::getProcedureInterpretationFailureProbability(), StateOfActivation::getStateOfActivation(), MentalInfo::getTimeAtWhichThisInfoIsPerceived(), Operator::getTypeOfOperator(), ProcedureExpectedAlarmStateUnit::getUseNewInfo(), ProcedureExpectedComponentStateUnit::getUseNewInfo(), ProcedureExpectedParameterDifferenceUnit::getUseNewInfo(), ProcedureExpectedParameterValueUnit::getUseNewInfo(), ProcedureExpectedSupportSystemStateUnit::getUseNewInfo(), Operator::hfe_bbn, sim::Branch::MentalBelief, sim::None, sim::Operator::OAT, sim::State::OldInfo, ShortTermMemory::parameter_update_time, sim::Comm::ParameterDifference, sim::Comm::ParameterTrend, sim::Comm::ParameterValue, ShortTermMemory::perceived_info, sim::Source::Plant, r5pars_, KBExpectedParameterDifferenceUnit::second_indicator, DecisionExpectedParameterDifference::second_mental_parameter, AlarmElement::setAlarmName(), Timer::setBothTotalTimeRequiredAndRemainingTime(), DisplayElement::setDisplayName(), KBExpectedAlarmStateUnit::setExpectedState(), KBExpectedComponentStateUnit::setExpectedState(), KBExpectedSupportSystemStateUnit::setExpectedState(), KBElement::setInfoName(), Probability::setProbability(), Communication::setSenderAndReceiver(), StateOfActivation::setStateOfActivation(), ExpectationElement::setStateOfExpectation(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), TimerAndProbability::setTimerAndProbability(), Communication::setTypeOfPauseActivity(), sim::State::Succeed, ShortTermMemory::support_system_update_time, sim::Comm::SupportSystemState, and sim::Bool::Yes.

◆ copyExpectationORUnit()

void ExpectationORUnit::copyExpectationORUnit ( ExpectationORUnit &  _exp)

◆ retrieveExpectationORUnitFromFile()

void ExpectationORUnit::retrieveExpectationORUnitFromFile ( std::ifstream &  )

◆ saveExpectationORUnitToFile()

void ExpectationORUnit::saveExpectationORUnitToFile ( std::ofstream &  )

◆ serialize()

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

Definition at line 42 of file ExpectationORUnit.h.

References expectation_OR.

◆ state_load()

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

Definition at line 824 of file ExpectationORUnit.cpp.

References e, expectation_OR, and StateOfActivation::setStateOfActivation().

Here is the call graph for this function:

◆ state_save()

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

Definition at line 816 of file ExpectationORUnit.cpp.

References e, expectation_OR, and StateOfActivation::getStateOfActivation().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 40 of file ExpectationORUnit.h.

Member Data Documentation

◆ expectation_OR

std::vector<std::unique_ptr<ExpectationElement> > ExpectationORUnit::expectation_OR

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