scram::mef::PeriodicTest::InstantRepair
The tests and repairs are instantaneous and always successful.
Inherits from scram::mef::PeriodicTest::Flavor
Public Functions
| Name | |
|---|---|
| InstantRepair(Expression * lambda, Expression * tau, Expression * theta, Expression * time)<br>The same semantics as for 4 argument periodic-test. | |
| void | Validate() const override |
| double | value() override |
| double | Sample() override |
Protected Attributes
| Name | |
|---|---|
| Expression & | lambda_ <br>The failure rate when functioning. |
| Expression & | tau_ <br>The time between tests in hours. |
| Expression & | theta_ <br>The time before the first test. |
| Expression & | time_ <br>The current time. |
Public Functions Documentation
function InstantRepair
cpp
inline InstantRepair(
Expression * lambda,
Expression * tau,
Expression * theta,
Expression * time
)The same semantics as for 4 argument periodic-test.
function Validate
cpp
void Validate() const overridefunction value
cpp
double value() overridefunction Sample
cpp
double Sample() overrideProtected Attributes Documentation
variable lambda_
cpp
Expression & lambda_;The failure rate when functioning.
variable tau_
cpp
Expression & tau_;The time between tests in hours.
variable theta_
cpp
Expression & theta_;The time before the first test.
variable time_
cpp
Expression & time_;The current time.
Updated on 2025-11-11 at 16:51:08 +0000
