← Documentation
ADS-IDAC Engine 5.0.0
DiagnosisComponentActionUnit Class Reference

#include <DiagnosisComponentActionUnit.h>

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

Public Member Functions

 DiagnosisComponentActionUnit ()
 
virtual ~DiagnosisComponentActionUnit ()
 
void clearDiagnosisComponentActionUnit ()
 
void setPriority (int)
 
int getPriority ()
 
void setActionType (int)
 
int getActionType ()
 
void setPrerequisiteState (int)
 
int getPrerequisiteState ()
 
void setControlInput (double)
 
double getControlInput ()
 
void setLowerLimit (double)
 
double getLowerLimit ()
 
void setUpperLimit (double)
 
double getUpperLimit ()
 
void setControlParameterName (std::string)
 
std::string getControlParameterName ()
 
void readDiagnosisComponentActionUnitInfoFromFile (std::ifstream &)
 
void readDiagnosisComponentPrerequisiteFromFile (std::ifstream &)
 
int checkForTypeOfPrerequisite (std::string)
 
bool assessPrerequisites (Operator &, ShortTermMemory &, int)
 
void copyDiagnosisComponentActionUnit (DiagnosisComponentActionUnit &)
 
void saveDiagnosisComponentActionUnitToFile (std::ofstream &)
 
void retrieveDiagnosisComponentActionUnitFromFile (std::ifstream &)
 
void resetComponentActionUnit ()
 
- 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 Attributes

std::vector< std::unique_ptr< ExpectationORUnit > > action_prerequisites
 
- Public Attributes inherited from KBElement
std::string info_name
 

Private Attributes

int priority
 
int action_type
 
int prerequisite_state
 
std::string control_parameter_name
 
double control_input
 
double lower_limit
 
double upper_limit
 

Detailed Description

Definition at line 18 of file DiagnosisComponentActionUnit.h.

Constructor & Destructor Documentation

◆ DiagnosisComponentActionUnit()

DiagnosisComponentActionUnit::DiagnosisComponentActionUnit ( )

◆ ~DiagnosisComponentActionUnit()

DiagnosisComponentActionUnit::~DiagnosisComponentActionUnit ( )
virtual

Definition at line 26 of file DiagnosisComponentActionUnit.cpp.

References clearDiagnosisComponentActionUnit().

Here is the call graph for this function:

Member Function Documentation

◆ assessPrerequisites()

bool DiagnosisComponentActionUnit::assessPrerequisites ( Operator &  _operator,
ShortTermMemory &  _stm,
int  _entry 
)

Definition at line 206 of file DiagnosisComponentActionUnit.cpp.

References action_prerequisites, sim::State::Active, sim::State::Failed, sim::None, setPrerequisiteState(), and sim::State::Succeed.

Here is the call graph for this function:

◆ checkForTypeOfPrerequisite()

int DiagnosisComponentActionUnit::checkForTypeOfPrerequisite ( std::string  )

◆ clearDiagnosisComponentActionUnit()

void DiagnosisComponentActionUnit::clearDiagnosisComponentActionUnit ( )

Definition at line 30 of file DiagnosisComponentActionUnit.cpp.

References action_prerequisites.

Referenced by ~DiagnosisComponentActionUnit().

Here is the caller graph for this function:

◆ copyDiagnosisComponentActionUnit()

void DiagnosisComponentActionUnit::copyDiagnosisComponentActionUnit ( DiagnosisComponentActionUnit &  _dcau)

Definition at line 249 of file DiagnosisComponentActionUnit.cpp.

References action_prerequisites, action_type, control_input, control_parameter_name, KBElement::copyKBElement(), getActionType(), getControlInput(), getControlParameterName(), getLowerLimit(), getPrerequisiteState(), getPriority(), getUpperLimit(), lower_limit, prerequisite_state, priority, and upper_limit.

Here is the call graph for this function:

◆ getActionType()

int DiagnosisComponentActionUnit::getActionType ( )

Definition at line 37 of file DiagnosisComponentActionUnit.cpp.

References action_type.

Referenced by copyDiagnosisComponentActionUnit(), and DiagnosisActionModule::onceThroughProcessForReasoningStrategy().

Here is the caller graph for this function:

◆ getControlInput()

double DiagnosisComponentActionUnit::getControlInput ( )

Definition at line 41 of file DiagnosisComponentActionUnit.cpp.

References control_input.

Referenced by copyDiagnosisComponentActionUnit(), and DiagnosisActionModule::onceThroughProcessForReasoningStrategy().

Here is the caller graph for this function:

◆ getControlParameterName()

string DiagnosisComponentActionUnit::getControlParameterName ( )

Definition at line 47 of file DiagnosisComponentActionUnit.cpp.

References control_parameter_name.

Referenced by copyDiagnosisComponentActionUnit(), and DiagnosisActionModule::onceThroughProcessForReasoningStrategy().

Here is the caller graph for this function:

◆ getLowerLimit()

double DiagnosisComponentActionUnit::getLowerLimit ( )

Definition at line 43 of file DiagnosisComponentActionUnit.cpp.

References lower_limit.

Referenced by copyDiagnosisComponentActionUnit().

Here is the caller graph for this function:

◆ getPrerequisiteState()

int DiagnosisComponentActionUnit::getPrerequisiteState ( )

Definition at line 39 of file DiagnosisComponentActionUnit.cpp.

References prerequisite_state.

Referenced by copyDiagnosisComponentActionUnit(), and DiagnosisActionModule::onceThroughProcessForReasoningStrategy().

Here is the caller graph for this function:

◆ getPriority()

int DiagnosisComponentActionUnit::getPriority ( )

Definition at line 35 of file DiagnosisComponentActionUnit.cpp.

References priority.

Referenced by copyDiagnosisComponentActionUnit().

Here is the caller graph for this function:

◆ getUpperLimit()

double DiagnosisComponentActionUnit::getUpperLimit ( )

Definition at line 45 of file DiagnosisComponentActionUnit.cpp.

References upper_limit.

Referenced by copyDiagnosisComponentActionUnit().

Here is the caller graph for this function:

◆ readDiagnosisComponentActionUnitInfoFromFile()

void DiagnosisComponentActionUnit::readDiagnosisComponentActionUnitInfoFromFile ( std::ifstream &  )

Definition at line 49 of file DiagnosisComponentActionUnit.cpp.

References action_type, control_input, control_parameter_name, lower_limit, sim::ControlAction::ParameterControl, priority, readDiagnosisComponentPrerequisiteFromFile(), KBElement::readInfoFromFile(), and upper_limit.

Here is the call graph for this function:

◆ readDiagnosisComponentPrerequisiteFromFile()

◆ resetComponentActionUnit()

void DiagnosisComponentActionUnit::resetComponentActionUnit ( )

Definition at line 239 of file DiagnosisComponentActionUnit.cpp.

References action_prerequisites, sim::None, and setPrerequisiteState().

Here is the call graph for this function:

◆ retrieveDiagnosisComponentActionUnitFromFile()

void DiagnosisComponentActionUnit::retrieveDiagnosisComponentActionUnitFromFile ( std::ifstream &  )

Definition at line 282 of file DiagnosisComponentActionUnit.cpp.

References action_prerequisites, action_type, control_input, control_parameter_name, lower_limit, prerequisite_state, priority, KBElement::retrieveKBElementFromFile(), and upper_limit.

Here is the call graph for this function:

◆ saveDiagnosisComponentActionUnitToFile()

void DiagnosisComponentActionUnit::saveDiagnosisComponentActionUnitToFile ( std::ofstream &  )

Definition at line 266 of file DiagnosisComponentActionUnit.cpp.

References action_prerequisites, action_type, control_input, control_parameter_name, lower_limit, prerequisite_state, priority, KBElement::saveKBElementToFile(), and upper_limit.

Here is the call graph for this function:

◆ setActionType()

void DiagnosisComponentActionUnit::setActionType ( int  n)

Definition at line 36 of file DiagnosisComponentActionUnit.cpp.

References action_type.

◆ setControlInput()

void DiagnosisComponentActionUnit::setControlInput ( double  x)

Definition at line 40 of file DiagnosisComponentActionUnit.cpp.

References control_input.

◆ setControlParameterName()

void DiagnosisComponentActionUnit::setControlParameterName ( std::string  )

Definition at line 46 of file DiagnosisComponentActionUnit.cpp.

References control_parameter_name.

◆ setLowerLimit()

void DiagnosisComponentActionUnit::setLowerLimit ( double  x)

Definition at line 42 of file DiagnosisComponentActionUnit.cpp.

References lower_limit.

◆ setPrerequisiteState()

void DiagnosisComponentActionUnit::setPrerequisiteState ( int  n)

Definition at line 38 of file DiagnosisComponentActionUnit.cpp.

References prerequisite_state.

Referenced by assessPrerequisites(), and resetComponentActionUnit().

Here is the caller graph for this function:

◆ setPriority()

void DiagnosisComponentActionUnit::setPriority ( int  n)

Definition at line 34 of file DiagnosisComponentActionUnit.cpp.

References priority.

◆ setUpperLimit()

void DiagnosisComponentActionUnit::setUpperLimit ( double  x)

Definition at line 44 of file DiagnosisComponentActionUnit.cpp.

References upper_limit.

Member Data Documentation

◆ action_prerequisites

◆ action_type

◆ control_input

◆ control_parameter_name

◆ lower_limit

◆ prerequisite_state

◆ priority

◆ upper_limit


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