Skip to content

scram::mef::TestEvent

The abstract base class for non-deviate test-event expressions.

#include <test_event.h>

Inherits from scram::mef::Expression, boost::noncopyable

Inherited by scram::mef::TestFunctionalEvent, scram::mef::TestInitiatingEvent

Public Functions

Name
TestEvent(const Context * context)
virtual Intervalinterval() override
virtual boolIsDeviate() override<br>Determines if the value of the expression contains deviate expressions.

Protected Attributes

Name
const Context &context_ <br>The evaluation context.

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.
virtual doublevalue() =0
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 TestEvent

cpp
inline explicit TestEvent(
    const Context * context
)

Parameters:

  • context The event-tree walk context.

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.

Protected Attributes Documentation

variable context_

cpp
const Context & context_;

The evaluation context.


Updated on 2025-11-11 at 16:51:08 +0000