|
ADS-IDAC Engine 5.0.0
|
#include <ExpectationORUnit.h>
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 |
Definition at line 22 of file ExpectationORUnit.h.
| ExpectationORUnit::ExpectationORUnit | ( | ) |
Definition at line 25 of file ExpectationORUnit.cpp.
|
virtual |
Definition at line 28 of file ExpectationORUnit.cpp.
| void ExpectationORUnit::add | ( | ExpectationElement * | _pt | ) |
Definition at line 31 of file ExpectationORUnit.cpp.
References expectation_OR.
Referenced by DiagnosisComponentActionUnit::readDiagnosisComponentPrerequisiteFromFile(), and ProcedureStepUnit::readInfofromFileExpectation().
| 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.
| void ExpectationORUnit::copyExpectationORUnit | ( | ExpectationORUnit & | _exp | ) |
Definition at line 34 of file ExpectationORUnit.cpp.
References AdsSimErr, sim::Comm::AlarmState, SimulationContext::Branch_center, sim::Comm::ComponentState, StateOfActivation::copyStateOfActivation(), expectation_OR, g_sim, sim::Branch::MentalBelief, sim::Comm::ParameterDifference, sim::Comm::ParameterTrend, sim::Comm::ParameterValue, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and sim::Comm::SupportSystemState.
| void ExpectationORUnit::retrieveExpectationORUnitFromFile | ( | std::ifstream & | ) |
Definition at line 760 of file ExpectationORUnit.cpp.
References sim::Comm::AlarmState, SimulationContext::Branch_center, sim::Comm::ComponentState, expectation_OR, g_sim, sim::Branch::MentalBelief, NoKB, sim::Comm::ParameterDifference, sim::Comm::ParameterTrend, sim::Comm::ParameterValue, r5pars_, StateOfActivation::retrieveStateOfActivationFromFile(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and sim::Comm::SupportSystemState.
| void ExpectationORUnit::saveExpectationORUnitToFile | ( | std::ofstream & | ) |
Definition at line 726 of file ExpectationORUnit.cpp.
References sim::Comm::AlarmState, SimulationContext::Branch_center, sim::Comm::ComponentState, e, expectation_OR, g_sim, sim::Branch::MentalBelief, NoKB, sim::Comm::ParameterDifference, sim::Comm::ParameterTrend, sim::Comm::ParameterValue, r5pars_, StateOfActivation::saveStateOfActivationToFile(), BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), and sim::Comm::SupportSystemState.
|
inlineprivate |
Definition at line 42 of file ExpectationORUnit.h.
References expectation_OR.
| void ExpectationORUnit::state_load | ( | boost::archive::binary_iarchive & | ar | ) |
Definition at line 824 of file ExpectationORUnit.cpp.
References e, expectation_OR, and StateOfActivation::setStateOfActivation().
| 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().
|
friend |
Definition at line 40 of file ExpectationORUnit.h.
| std::vector<std::unique_ptr<ExpectationElement> > ExpectationORUnit::expectation_OR |
Definition at line 38 of file ExpectationORUnit.h.
Referenced by add(), assessExpectation(), copyExpectationORUnit(), retrieveExpectationORUnitFromFile(), saveExpectationORUnitToFile(), serialize(), state_load(), and state_save().