scram::mef::MissionTime
The special parameter for system mission time.
#include <parameter.h>
Inherits from scram::mef::Expression, boost::noncopyable
Public Functions
| Name | |
|---|---|
| MissionTime(double time =0, Units unit =kHours) | |
| Units | unit() const |
| void | value(double time)<br>Changes the mission time value. |
| virtual double | value() override |
| virtual Interval | interval() override |
| virtual bool | IsDeviate() override<br>Determines if the value of the expression contains deviate expressions. |
Additional inherited members
Public Functions inherited from scram::mef::Expression
| Name | |
|---|---|
| Expression(std::vector< Expression * > args ={})<br>Constructor for use by derived classes to register their arguments. | |
| virtual | ~Expression() =default |
| const std::vector< Expression * > & | args() const |
| virtual void | Validate() const<br>Validates the expression. |
| double | Sample() |
| void | Reset()<br>This routine resets the sampling to get new values. |
Protected Functions inherited from scram::mef::Expression
| Name | |
|---|---|
| void | AddArg(Expression * arg)<br>Registers an additional argument expression. |
Public Functions Documentation
function MissionTime
explicit MissionTime(
double time =0,
Units unit =kHours
)Parameters:
- time The mission time.
- unit The unit of the given
timeargument.
Exceptions:
- LogicError The time value is negative.
function unit
inline Units unit() constReturn: The unit of the system mission time.
function value
void value(
double time
)Changes the mission time value.
Parameters:
- time The mission time in hours.
Exceptions:
- LogicError The time value is negative.
function value
inline virtual double value() overrideReturn: The mean value of this expression.
Reimplements: scram::mef::Expression::value
function interval
inline virtual Interval interval() overrideReturn: The domain interval for validation purposes only.
Reimplements: scram::mef::Expression::interval
function IsDeviate
inline virtual bool IsDeviate() overrideDetermines if the value of the expression contains deviate expressions.
Return:
- true if the expression's value deviates from its mean.
- false if the expression's value does not need sampling.
Warning: Improper registration of arguments may yield silent failure.
Reimplements: scram::mef::Expression::IsDeviate
The default logic is to check arguments with uncertainties for sampling. Derived expression classes must decide if they don't have arguments, or if they are random deviates.
Updated on 2025-11-11 at 16:51:08 +0000
