← Documentation
ADS-IDAC Engine 5.0.0
Timer Class Reference

#include <Timer.h>

Inheritance diagram for Timer:
[legend]

Public Member Functions

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)
 

Private Attributes

double beta_weibull
 
double alpha_weibull
 
double t_minimum
 
double remaining_time
 
double total_time_required
 
int number_of_intervals
 
int number_of_intervals_passed
 
double time_at_demand
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 17 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

◆ ~Timer()

Timer::~Timer ( )
virtual

Definition at line 27 of file Timer.cpp.

Member Function Documentation

◆ calculateMeanRequiredTime() [1/2]

double Timer::calculateMeanRequiredTime ( )

Definition at line 131 of file Timer.cpp.

References calculateRequiredTime(), and calculateWeibull_pdf().

Referenced by ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeNonResponseAction(), DiagnosisActionModule::getPtrToHighPriorityDiagnosisActionUnit(), and DiagnosisActionModule::onceThroughProcessForReasoningStrategy().

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

◆ calculateMeanRequiredTime() [2/2]

double Timer::calculateMeanRequiredTime ( double  _lower,
double  _upper 
)

Definition at line 102 of file Timer.cpp.

References calculateRequiredTime(), and calculateWeibull_pdf().

Here is the call graph for this function:

◆ calculateRequiredTime() [1/2]

double Timer::calculateRequiredTime ( )

Definition at line 76 of file Timer.cpp.

References alpha_weibull, beta_weibull, PG::log, and t_minimum.

Referenced by ExpectationORUnit::assessExpectation(), and calculateMeanRequiredTime().

Here is the caller graph for this function:

◆ calculateRequiredTime() [2/2]

double Timer::calculateRequiredTime ( double  _cdf)

Definition at line 85 of file Timer.cpp.

References alpha_weibull, beta_weibull, PG::log, and t_minimum.

◆ calculateWeibull_pdf()

double Timer::calculateWeibull_pdf ( double  _t)

Definition at line 91 of file Timer.cpp.

References alpha_weibull, beta_weibull, and t_minimum.

Referenced by calculateMeanRequiredTime().

Here is the caller graph for this function:

◆ checkIfIsIdenticalTimer()

bool Timer::checkIfIsIdenticalTimer ( Timer &  _timer)

Definition at line 64 of file Timer.cpp.

References getRemainingTime(), and remaining_time.

Referenced by ExpectedMentalBelief::checkIfIsIdenticalExpectedMentalBelief().

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

◆ copyTimer()

void Timer::copyTimer ( Timer &  _timer)

Definition at line 44 of file Timer.cpp.

References alpha_weibull, beta_weibull, getAlpha_Weibull(), getBeta_Weibull(), getNumberOfIntervals(), getNumberOfIntervalsPassed(), getRemainingTime(), getT_Minimum(), getTimeAtDemand(), getTotalTimeRequired(), number_of_intervals, number_of_intervals_passed, remaining_time, t_minimum, time_at_demand, and total_time_required.

Referenced by ExpectationORUnit::assessExpectation(), CommandControlUnit::copyCommandControlUnit(), DiagnosisActionUnit::copyDiagnosisActionUnit(), ExpectedMentalBelief::copyExpectedMentalBelief(), KBBiasFactorUnit::copyKBBiasFactorUnit(), KBHardWiredUnit::copyKBHardWiredUnit(), ProcedureActionUnit::copyProcedureActionUnit(), ProcedureExpectedActionPackUnit::copyProcedureExpectedActionPackUnit(), ProcedureExpectedAlarmStateUnit::copyProcedureExpectedAlarmStateUnit(), ProcedureExpectedComponentStateUnit::copyProcedureExpectedComponentStateUnit(), ProcedureExpectedParameterDifferenceUnit::copyProcedureExpectedParameterDifferenceUnit(), ProcedureExpectedParameterTrendUnit::copyProcedureExpectedParameterTrendUnit(), ProcedureExpectedParameterValueUnit::copyProcedureExpectedParameterValueUnit(), ProcedureExpectedSupportSystemStateUnit::copyProcedureExpectedSupportSystemStateUnit(), ProcedureScannedParameterUnit::copyProcedureScannedParameterUnit(), ShortTermMemory::copyShortTermMemoryFromRestartInfo(), ShortTermMemory::copyShortTermMemoryToRestartInfo(), and TimerAndProbability::copyTimerAndProbability().

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

◆ getAlpha_Weibull()

double Timer::getAlpha_Weibull ( )

Definition at line 35 of file Timer.cpp.

References alpha_weibull.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ getBeta_Weibull()

double Timer::getBeta_Weibull ( )

Definition at line 37 of file Timer.cpp.

References beta_weibull.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ getNumberOfIntervals()

int Timer::getNumberOfIntervals ( ) const

Definition at line 156 of file Timer.cpp.

References number_of_intervals.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ getNumberOfIntervalsPassed()

int Timer::getNumberOfIntervalsPassed ( ) const

Definition at line 162 of file Timer.cpp.

References number_of_intervals_passed.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ getRemainingTime()

◆ getT_Minimum()

double Timer::getT_Minimum ( )

Definition at line 39 of file Timer.cpp.

References t_minimum.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ getTimeAtDemand()

double Timer::getTimeAtDemand ( ) const

Definition at line 168 of file Timer.cpp.

References time_at_demand.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ getTotalTimeRequired()

double Timer::getTotalTimeRequired ( )

Definition at line 33 of file Timer.cpp.

References total_time_required.

Referenced by copyTimer().

Here is the caller graph for this function:

◆ reduceRemainingTime()

double Timer::reduceRemainingTime ( double  x)

Definition at line 40 of file Timer.cpp.

References remaining_time.

◆ retrieveTimerFromFile()

void Timer::retrieveTimerFromFile ( std::ifstream &  )

◆ saveTimerToFile()

◆ serialize()

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

◆ setAlpha_Weibull()

◆ setBeta_Weibull()

◆ setBothTotalTimeRequiredAndRemainingTime()

void Timer::setBothTotalTimeRequiredAndRemainingTime ( double  x)

Definition at line 71 of file Timer.cpp.

References remaining_time, and total_time_required.

Referenced by ExpectationORUnit::assessExpectation(), Operator::checkAndActivateHWKB(), ControlPanel::executeRequestToPlant(), ProcedureExpectedActionPackUnit::readInfoFromFile(), and ProcedureExpectedActionPackUnit::readInfoFromFileWithoutInfoName().

Here is the caller graph for this function:

◆ setNumberOfIntervals()

void Timer::setNumberOfIntervals ( int  number_of_intervals)

Definition at line 159 of file Timer.cpp.

References number_of_intervals.

◆ setNumberOfIntervalsPassed()

void Timer::setNumberOfIntervalsPassed ( int  number_of_intervals_passed)

Definition at line 165 of file Timer.cpp.

References number_of_intervals_passed.

◆ setRemainingTime()

void Timer::setRemainingTime ( double  x)

Definition at line 30 of file Timer.cpp.

References remaining_time.

Referenced by DiagnosisActionModule::getPtrToHighPriorityDiagnosisActionUnit(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), and TimerAndProbability::setTimerAndProbability().

Here is the caller graph for this function:

◆ setT_Minimum()

◆ setTimeAtDemand()

void Timer::setTimeAtDemand ( double  time_at_demand)

Definition at line 171 of file Timer.cpp.

References time_at_demand.

◆ setTotalTimeRequired()

void Timer::setTotalTimeRequired ( double  x)

Definition at line 32 of file Timer.cpp.

References total_time_required.

Referenced by KBBiasFactorUnit::readKBBiasFactorUnit(), and TimerAndProbability::setTimerAndProbability().

Here is the caller graph for this function:

◆ timer_state_load()

◆ timer_state_save()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 60 of file Timer.h.

Member Data Documentation

◆ alpha_weibull

◆ beta_weibull

◆ number_of_intervals

int Timer::number_of_intervals
private

◆ number_of_intervals_passed

int Timer::number_of_intervals_passed
private

◆ remaining_time

◆ t_minimum

◆ time_at_demand

double Timer::time_at_demand
private

◆ total_time_required


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