← Documentation
ADS-IDAC Engine 5.0.0
KBActionPackUnit Class Reference

#include <KBActionPackUnit.h>

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

Public Member Functions

 KBActionPackUnit ()
 
virtual ~KBActionPackUnit ()
 
void readInfoFromFile (std::ifstream &)
 
void checkForAction (std::string, double)
 
void checkForAlarmState (std::string, int)
 
void checkForComponentState (std::string, int)
 
void checkForParameterValue (std::string, double, int)
 
void checkForParameterTrend (std::string, int)
 
bool updateActionPackUnitState ()
 
void copyKBActionPackUnit (KBActionPackUnit &)
 
- 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 Attributes

std::vector< std::unique_ptr< DecisionAction > > action
 
std::vector< std::unique_ptr< KBExpectedAlarmStateUnit > > expected_alarm_state
 
std::vector< std::unique_ptr< KBExpectedComponentStateUnit > > expected_component_state
 
std::vector< std::unique_ptr< KBExpectedParameterValueUnit > > expected_parameter_value
 
std::vector< std::unique_ptr< KBExpectedParameterTrendUnit > > expected_parameter_trend
 
- Public Attributes inherited from KBElement
std::string info_name
 

Detailed Description

Definition at line 16 of file KBActionPackUnit.h.

Constructor & Destructor Documentation

◆ KBActionPackUnit()

KBActionPackUnit::KBActionPackUnit ( )

Definition at line 12 of file KBActionPackUnit.cpp.

◆ ~KBActionPackUnit()

KBActionPackUnit::~KBActionPackUnit ( )
virtual

Member Function Documentation

◆ checkForAction()

void KBActionPackUnit::checkForAction ( std::string  ,
double   
)

Definition at line 60 of file KBActionPackUnit.cpp.

References action.

◆ checkForAlarmState()

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

Definition at line 66 of file KBActionPackUnit.cpp.

References expected_alarm_state.

◆ checkForComponentState()

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

Definition at line 72 of file KBActionPackUnit.cpp.

References expected_component_state.

◆ checkForParameterTrend()

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

Definition at line 84 of file KBActionPackUnit.cpp.

References expected_parameter_trend.

◆ checkForParameterValue()

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

Definition at line 78 of file KBActionPackUnit.cpp.

References expected_parameter_value.

◆ copyKBActionPackUnit()

void KBActionPackUnit::copyKBActionPackUnit ( KBActionPackUnit &  _ap)

Definition at line 90 of file KBActionPackUnit.cpp.

References action, KBElement::copyKBElement(), StateOfActivation::copyStateOfActivation(), expected_alarm_state, expected_component_state, expected_parameter_trend, and expected_parameter_value.

Here is the call graph for this function:

◆ readInfoFromFile()

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

Definition at line 25 of file KBActionPackUnit.cpp.

References action, expected_alarm_state, expected_component_state, expected_parameter_value, and KBElement::readInfoFromFile().

Here is the call graph for this function:

◆ updateActionPackUnitState()

bool KBActionPackUnit::updateActionPackUnitState ( )

Definition at line 119 of file KBActionPackUnit.cpp.

References action, sim::State::Active, expected_alarm_state, expected_component_state, expected_parameter_value, StateOfActivation::getStateOfActivation(), StateOfActivation::setStateOfActivation(), and sim::State::Succeed.

Here is the call graph for this function:

Member Data Documentation

◆ action

std::vector<std::unique_ptr<DecisionAction> > KBActionPackUnit::action

◆ expected_alarm_state

std::vector<std::unique_ptr<KBExpectedAlarmStateUnit> > KBActionPackUnit::expected_alarm_state

◆ expected_component_state

std::vector<std::unique_ptr<KBExpectedComponentStateUnit> > KBActionPackUnit::expected_component_state

◆ expected_parameter_trend

std::vector<std::unique_ptr<KBExpectedParameterTrendUnit> > KBActionPackUnit::expected_parameter_trend

◆ expected_parameter_value

std::vector<std::unique_ptr<KBExpectedParameterValueUnit> > KBActionPackUnit::expected_parameter_value

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