← Documentation
ADS-IDAC Engine 5.0.0
TimerAndProbability Class Reference

#include <TimerAndProbability.h>

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

Public Member Functions

 TimerAndProbability ()
 
virtual ~TimerAndProbability ()
 
void setTimerAndProbability (double, double)
 
void copyTimerAndProbability (TimerAndProbability &)
 
void saveTimerAndProbabilityToFile (std::ofstream &)
 
void retrieveTimerAndProbabilityFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from Timer
template<class Archive >
void timer_state_save (Archive &ar) const
 
template<class Archive >
void timer_state_load (Archive &ar)
 
double calculateRequiredTime ()
 
double calculateRequiredTime (double)
 
double calculateMeanRequiredTime ()
 
double calculateMeanRequiredTime (double, double)
 
double calculateWeibull_pdf (double)
 
 Timer ()
 
virtual ~Timer ()
 
void setRemainingTime (double)
 
void setTotalTimeRequired (double)
 
void setAlpha_Weibull (double)
 
void setBeta_Weibull (double)
 
void setT_Minimum (double)
 
double getTotalTimeRequired ()
 
double getRemainingTime ()
 
double reduceRemainingTime (double)
 
double getAlpha_Weibull ()
 
double getBeta_Weibull ()
 
double getT_Minimum ()
 
void copyTimer (Timer &)
 
int getNumberOfIntervals () const
 
void setNumberOfIntervals (int)
 
int getNumberOfIntervalsPassed () const
 
void setNumberOfIntervalsPassed (int)
 
double getTimeAtDemand () const
 
void setTimeAtDemand (double)
 
void saveTimerToFile (std::ofstream &)
 
void retrieveTimerFromFile (std::ifstream &)
 
bool checkIfIsIdenticalTimer (Timer &)
 
void setBothTotalTimeRequiredAndRemainingTime (double)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- 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)
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 18 of file TimerAndProbability.h.

Constructor & Destructor Documentation

◆ TimerAndProbability()

TimerAndProbability::TimerAndProbability ( )

Definition at line 16 of file TimerAndProbability.cpp.

◆ ~TimerAndProbability()

TimerAndProbability::~TimerAndProbability ( )
virtual

Definition at line 21 of file TimerAndProbability.cpp.

Member Function Documentation

◆ copyTimerAndProbability()

◆ retrieveTimerAndProbabilityFromFile()

void TimerAndProbability::retrieveTimerAndProbabilityFromFile ( std::ifstream &  )

Definition at line 38 of file TimerAndProbability.cpp.

References Probability::retrieveProbabilityFromFile(), and Timer::retrieveTimerFromFile().

Referenced by BranchAction::retrieveBranchActionFromFile(), BranchActionObjective::retrieveBranchActionObjectiveFromFile(), BranchActionPack::retrieveBranchActionPackFromFile(), BranchDiagnosis::retrieveBranchDiagnosisFromFile(), BranchExpectedAlarmState::retrieveBranchExpectedAlarmStateFromFile(), BranchExpectedComponentState::retrieveBranchExpectedComponentStateFromFile(), BranchExpectedParameterDifference::retrieveBranchExpectedParameterDifferenceFromFile(), BranchExpectedParameterTrend::retrieveBranchExpectedParameterTrendFromFile(), BranchExpectedParameterValue::retrieveBranchExpectedParameterValueFromFile(), BranchExpectedSupportSystemState::retrieveBranchExpectedSupportSystemStateFromFile(), BranchGoal::retrieveBranchGoalFromFile(), BranchInfoGatherMode::retrieveBranchInfoGatherModeFromFile(), BranchProcedureStep::retrieveBranchProcedureStepFromFile(), BranchScannedParameter::retrieveBranchScannedParameterFromFile(), BranchStrategy::retrieveBranchStrategyFromFile(), BranchSubGoal::retrieveBranchSubGoalFromFile(), BranchSupportSystemAction::retrieveBranchSupportSystemActionFromFile(), BranchSystemAction::retrieveBranchSystemActionFromFile(), and BranchSystemAlarmState::retrieveBranchSystemAlarmStateFromFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveTimerAndProbabilityToFile()

void TimerAndProbability::saveTimerAndProbabilityToFile ( std::ofstream &  )

Definition at line 34 of file TimerAndProbability.cpp.

References Probability::saveProbabilityToFile(), and Timer::saveTimerToFile().

Referenced by BranchActionObjective::saveBranchActionObjectiveToFile(), BranchActionPack::saveBranchActionPackToFile(), BranchAction::saveBranchActionToFile(), BranchDiagnosis::saveBranchDiagnosisToFile(), BranchExpectedAlarmState::saveBranchExpectedAlarmStateToFile(), BranchExpectedComponentState::saveBranchExpectedComponentStateToFile(), BranchExpectedParameterDifference::saveBranchExpectedParameterDifferenceToFile(), BranchExpectedParameterTrend::saveBranchExpectedParameterTrendToFile(), BranchExpectedParameterValue::saveBranchExpectedParameterValueToFile(), BranchExpectedSupportSystemState::saveBranchExpectedSupportSystemStateToFile(), BranchGoal::saveBranchGoalToFile(), BranchInfoGatherMode::saveBranchInfoGatherModeToFile(), BranchProcedureStep::saveBranchProcedureStepToFile(), BranchScannedParameter::saveBranchScannedParameterToFile(), BranchStrategy::saveBranchStrategyToFile(), BranchSubGoal::saveBranchSubGoalToFile(), BranchSupportSystemAction::saveBranchSupportSystemActionToFile(), BranchSystemAction::saveBranchSystemActionToFile(), and BranchSystemAlarmState::saveBranchSystemAlarmStateToFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

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

Definition at line 31 of file TimerAndProbability.h.

◆ setTimerAndProbability()

void TimerAndProbability::setTimerAndProbability ( double  _time,
double  _probability 
)

Definition at line 25 of file TimerAndProbability.cpp.

References Probability::setProbability(), Timer::setRemainingTime(), and Timer::setTotalTimeRequired().

Referenced by Operator::ActiveFetchAlarmStateInfo(), Operator::ActiveFetchComponentStateInfo(), Operator::ActiveFetchParameterValueInfo(), Operator::ActiveFetchSupportSystemStateInfo(), ExpectationORUnit::assessExpectation(), HWReliabilityModule::checkAndActiveComponentFailure(), SupportSystemReliabilityModule::checkAndActiveSupportSystemFailure(), InitiatingEventController::checkAndExecuteInitiatingEvent(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ManeuverActionUnit::executeManeuverControl(), ProcedureStepUnit::executeNonResponseAction(), ControlPanel::executeRequestToPlant(), Operator::generateInfoGatherModeBranch(), OperatorAT::infoChunking(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), ProcedureStep::oneThroughProcessForProcedureStep(), Operator::performAMentalProcedure(), OperatorDM::performFollowProcedureStrategy(), OperatorDM::performRecoveryAction(), OperatorAT::selectGoal(), OperatorCT::selectGoal(), OperatorDM::selectGoal(), OperatorAT::selectStrategy(), OperatorDM::selectStrategy(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 29 of file TimerAndProbability.h.


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