← Documentation
ADS-IDAC Engine 5.0.0
KBHardWiredUnit Class Reference

#include <KBHardWiredUnit.h>

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

Public Member Functions

void state_save (boost::archive::binary_oarchive &ar) const
 
void state_load (boost::archive::binary_iarchive &ar)
 
 KBHardWiredUnit ()
 
virtual ~KBHardWiredUnit ()
 
void readInfoFromFile (std::ifstream &)
 
void recalculateConfidenceLevel ()
 
double calculateConfidenceLevel ()
 
double getConfidenceLevel ()
 
void calculateTotalNumberOfExpectation ()
 
void checkForAlarmState (std::string, int)
 
void checkForComponentState (std::string, int)
 
void checkForSupportSystemState (std::string, int)
 
void checkForParameterValue (std::string, double, int)
 
void checkForParameterTrend (std::string, int)
 
void checkForControl (std::string, double)
 
void checkForMentalBelief (std::string, int)
 
void checkForProcedureActivity (std::string, int)
 
void copyKBHardWiredUnit (KBHardWiredUnit &)
 
void setTotalNumberOfExpectation (int)
 
void setNumberOfFulfilledAlarmState (int)
 
void setNumberOfFulfilledComponentState (int)
 
void setNumberOfFulfilledSupportSystemState (int)
 
void setNumberOfFulfilledParameterValue (int)
 
void setNumberOfFulfilledParameterTrend (int)
 
void setNumberOfFulfilledControl (int)
 
void setNumberOfFulfilledProcedureActivity (int)
 
void setNumberOfFulfilledMentalBelief (int)
 
void setMentalProcedurePriority (int)
 
int getNumberOfFulfilledControl ()
 
int getNumberOfFulfilledMentalBelief ()
 
int getTotalNumberOfExpectation ()
 
int getNumberOfFulfilledAlarmState ()
 
int getNumberOfFulfilledComponentState ()
 
int getNumberOfFulfilledSupportSystemState ()
 
int getNumberOfFulfilledParameterValue ()
 
int getNumberOfFulfilledParameterTrend ()
 
int getNumberOfFulfilledProcedureActivity ()
 
int getMentalProcedurePriority ()
 
void saveKBHardWiredUnitToFile (std::ofstream &)
 
void retrieveKBHardWiredUnitFromFile (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 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 Member Functions inherited from ProcedureStepInfo
 ProcedureStepInfo ()
 
virtual ~ProcedureStepInfo ()
 
void setProcedureName (std::string procedure_name)
 
void setStepName (std::string step_name)
 
std::string getProcedureName ()
 
std::string getStepName ()
 
void readInfoFromFile (std::ifstream &)
 
void copyProcedureStepInfo (ProcedureStepInfo &)
 
void saveProcedureStepInfoToFile (std::ofstream &)
 
void retrieveProcedureStepInfoFromFile (std::ifstream &)
 
- Public Member Functions inherited from Probability
double calculateProbability ()
 
double calculateSurvivalProbability (double)
 
double gamma_log (double)
 
double beta_cdf_inv (double, double, double)
 
double beta_cdf (double, double, double)
 
double beta_pdf (double, double, double)
 
double beta_inc (double, double, double)
 
double beta (double, double)
 
double r8_huge ()
 
double r8_epsilon (void)
 
 Probability ()
 
virtual ~Probability ()
 
void setProbability (double)
 
double getProbability ()
 
void setAlpha_Parameter (double)
 
double getAlpha_Parameter ()
 
void setBeta_Parameter (double)
 
double getBeta_Parameter ()
 
void copyProbability (Probability &)
 
void saveProbabilityToFile (std::ofstream &)
 
void retrieveProbabilityFromFile (std::ifstream &)
 
double getFailureRate () const
 
void setFailureRate (double failure_rate)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< std::unique_ptr< KBExpectedAlarmStateUnit > > expected_alarm_state
 
std::vector< std::unique_ptr< KBExpectedComponentStateUnit > > expected_component_state
 
std::vector< std::unique_ptr< KBExpectedSupportSystemStateUnit > > expected_support_system_state
 
std::vector< std::unique_ptr< KBExpectedParameterValueUnit > > expected_parameter_value
 
std::vector< std::unique_ptr< KBExpectedParameterTrendUnit > > expected_parameter_trend
 
std::vector< std::unique_ptr< HardWiredControlActivity > > expected_control
 
std::vector< std::unique_ptr< HardWiredMentalBelief > > expected_mental_belief
 
std::vector< std::unique_ptr< HardWiredProcedureActivity > > expected_procedure_activity
 
Timer activation_delay
 
Timer dormancy_time
 
Probability branch_probability
 
Probability activation_probability
 
- Public Attributes inherited from KBElement
std::string info_name
 

Private Member Functions

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

Private Attributes

double confidence_level
 
int total_number_of_expectation
 
int number_of_fulfilled_alarm_state
 
int number_of_fulfilled_component_state
 
int number_of_fulfilled_support_system_state
 
int number_of_fulfilled_parameter_value
 
int number_of_fulfilled_parameter_trend
 
int number_of_fulfilled_control
 
int number_of_fulfilled_mental_belief
 
int number_of_fulfilled_procedure_activity
 
int mental_procedure_priority
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 39 of file KBHardWiredUnit.h.

Constructor & Destructor Documentation

◆ KBHardWiredUnit()

◆ ~KBHardWiredUnit()

Member Function Documentation

◆ calculateConfidenceLevel()

double KBHardWiredUnit::calculateConfidenceLevel ( )

◆ calculateTotalNumberOfExpectation()

void KBHardWiredUnit::calculateTotalNumberOfExpectation ( )

Definition at line 177 of file KBHardWiredUnit.cpp.

References expected_alarm_state, expected_component_state, expected_control, expected_mental_belief, expected_parameter_trend, expected_parameter_value, expected_procedure_activity, and total_number_of_expectation.

Referenced by calculateConfidenceLevel(), and recalculateConfidenceLevel().

Here is the caller graph for this function:

◆ checkForAlarmState()

void KBHardWiredUnit::checkForAlarmState ( std::string  ,
int   
)

Definition at line 205 of file KBHardWiredUnit.cpp.

References expected_alarm_state, and number_of_fulfilled_alarm_state.

◆ checkForComponentState()

void KBHardWiredUnit::checkForComponentState ( std::string  ,
int   
)

◆ checkForControl()

void KBHardWiredUnit::checkForControl ( std::string  ,
double   
)

Definition at line 253 of file KBHardWiredUnit.cpp.

References expected_control, and number_of_fulfilled_control.

◆ checkForMentalBelief()

void KBHardWiredUnit::checkForMentalBelief ( std::string  ,
int   
)

◆ checkForParameterTrend()

void KBHardWiredUnit::checkForParameterTrend ( std::string  ,
int   
)

◆ checkForParameterValue()

void KBHardWiredUnit::checkForParameterValue ( std::string  ,
double  ,
int   
)

◆ checkForProcedureActivity()

void KBHardWiredUnit::checkForProcedureActivity ( std::string  ,
int   
)

◆ checkForSupportSystemState()

void KBHardWiredUnit::checkForSupportSystemState ( std::string  ,
int   
)

◆ copyKBHardWiredUnit()

◆ getConfidenceLevel()

double KBHardWiredUnit::getConfidenceLevel ( )

Definition at line 176 of file KBHardWiredUnit.cpp.

References confidence_level.

Referenced by copyKBHardWiredUnit(), and OperatorDM::selectGoal().

Here is the caller graph for this function:

◆ getMentalProcedurePriority()

int KBHardWiredUnit::getMentalProcedurePriority ( )

Definition at line 359 of file KBHardWiredUnit.cpp.

References mental_procedure_priority.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledAlarmState()

int KBHardWiredUnit::getNumberOfFulfilledAlarmState ( )

Definition at line 347 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_alarm_state.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledComponentState()

int KBHardWiredUnit::getNumberOfFulfilledComponentState ( )

Definition at line 348 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_component_state.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledControl()

int KBHardWiredUnit::getNumberOfFulfilledControl ( )

Definition at line 354 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_control.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledMentalBelief()

int KBHardWiredUnit::getNumberOfFulfilledMentalBelief ( )

Definition at line 355 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_mental_belief.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledParameterTrend()

int KBHardWiredUnit::getNumberOfFulfilledParameterTrend ( )

Definition at line 351 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_parameter_trend.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledParameterValue()

int KBHardWiredUnit::getNumberOfFulfilledParameterValue ( )

Definition at line 350 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_parameter_value.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledProcedureActivity()

int KBHardWiredUnit::getNumberOfFulfilledProcedureActivity ( )

Definition at line 356 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_procedure_activity.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getNumberOfFulfilledSupportSystemState()

int KBHardWiredUnit::getNumberOfFulfilledSupportSystemState ( )

Definition at line 349 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_support_system_state.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ getTotalNumberOfExpectation()

int KBHardWiredUnit::getTotalNumberOfExpectation ( )

Definition at line 346 of file KBHardWiredUnit.cpp.

References total_number_of_expectation.

Referenced by copyKBHardWiredUnit().

Here is the caller graph for this function:

◆ readInfoFromFile()

◆ recalculateConfidenceLevel()

◆ retrieveKBHardWiredUnitFromFile()

◆ saveKBHardWiredUnitToFile()

◆ serialize()

◆ setMentalProcedurePriority()

void KBHardWiredUnit::setMentalProcedurePriority ( int  n)

Definition at line 358 of file KBHardWiredUnit.cpp.

References mental_procedure_priority.

Referenced by readInfoFromFile().

Here is the caller graph for this function:

◆ setNumberOfFulfilledAlarmState()

void KBHardWiredUnit::setNumberOfFulfilledAlarmState ( int  n)

Definition at line 341 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_alarm_state.

◆ setNumberOfFulfilledComponentState()

void KBHardWiredUnit::setNumberOfFulfilledComponentState ( int  n)

Definition at line 342 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_component_state.

◆ setNumberOfFulfilledControl()

void KBHardWiredUnit::setNumberOfFulfilledControl ( int  n)

Definition at line 352 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_control.

◆ setNumberOfFulfilledMentalBelief()

void KBHardWiredUnit::setNumberOfFulfilledMentalBelief ( int  n)

Definition at line 353 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_mental_belief.

◆ setNumberOfFulfilledParameterTrend()

void KBHardWiredUnit::setNumberOfFulfilledParameterTrend ( int  n)

Definition at line 345 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_parameter_trend.

◆ setNumberOfFulfilledParameterValue()

void KBHardWiredUnit::setNumberOfFulfilledParameterValue ( int  n)

Definition at line 344 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_parameter_value.

◆ setNumberOfFulfilledProcedureActivity()

void KBHardWiredUnit::setNumberOfFulfilledProcedureActivity ( int  n)

Definition at line 357 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_procedure_activity.

◆ setNumberOfFulfilledSupportSystemState()

void KBHardWiredUnit::setNumberOfFulfilledSupportSystemState ( int  n)

Definition at line 343 of file KBHardWiredUnit.cpp.

References number_of_fulfilled_support_system_state.

◆ setTotalNumberOfExpectation()

void KBHardWiredUnit::setTotalNumberOfExpectation ( int  n)

Definition at line 340 of file KBHardWiredUnit.cpp.

References total_number_of_expectation.

◆ state_load()

◆ state_save()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 97 of file KBHardWiredUnit.h.

Member Data Documentation

◆ activation_delay

◆ activation_probability

◆ branch_probability

Probability KBHardWiredUnit::branch_probability

◆ confidence_level

◆ dormancy_time

◆ expected_alarm_state

◆ expected_component_state

◆ expected_control

◆ expected_mental_belief

◆ expected_parameter_trend

◆ expected_parameter_value

◆ expected_procedure_activity

◆ expected_support_system_state

◆ mental_procedure_priority

◆ number_of_fulfilled_alarm_state

◆ number_of_fulfilled_component_state

◆ number_of_fulfilled_control

◆ number_of_fulfilled_mental_belief

◆ number_of_fulfilled_parameter_trend

◆ number_of_fulfilled_parameter_value

◆ number_of_fulfilled_procedure_activity

◆ number_of_fulfilled_support_system_state

◆ total_number_of_expectation


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