Skip to content

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)
Unitsunit() const
voidvalue(double time)<br>Changes the mission time value.
virtual doublevalue() override
virtual Intervalinterval() override
virtual boolIsDeviate() 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 voidValidate() const<br>Validates the expression.
doubleSample()
voidReset()<br>This routine resets the sampling to get new values.

Protected Functions inherited from scram::mef::Expression

Name
voidAddArg(Expression * arg)<br>Registers an additional argument expression.

Public Functions Documentation

function MissionTime

cpp
explicit MissionTime(
    double time =0,
    Units unit =kHours
)

Parameters:

  • time The mission time.
  • unit The unit of the given time argument.

Exceptions:

function unit

cpp
inline Units unit() const

Return: The unit of the system mission time.

function value

cpp
void value(
    double time
)

Changes the mission time value.

Parameters:

  • time The mission time in hours.

Exceptions:

function value

cpp
inline virtual double value() override

Return: The mean value of this expression.

Reimplements: scram::mef::Expression::value

function interval

cpp
inline virtual Interval interval() override

Return: The domain interval for validation purposes only.

Reimplements: scram::mef::Expression::interval

function IsDeviate

cpp
inline virtual bool IsDeviate() override

Determines 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