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 Interval | interval() override |
| virtual bool | IsDeviate() 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 void | Validate() const<br>Validates the expression. |
| virtual double | value() =0 |
| 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 TestEvent
inline explicit TestEvent(
const Context * context
)Parameters:
- context The event-tree walk context.
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.
Protected Attributes Documentation
variable context_
const Context & context_;The evaluation context.
Updated on 2025-11-11 at 16:51:08 +0000
