Skip to content

scram::mef::TestInitiatingEvent

Upon event-tree walk, tests whether an initiating event has occurred.

#include <test_event.h>

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

Public Functions

Name
TestInitiatingEvent(std::string name, const Context * context)
virtual doublevalue() override

Additional inherited members

Public Functions inherited from scram::mef::TestEvent

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

Protected Attributes inherited from scram::mef::TestEvent

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

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 Intervalinterval()
virtual boolIsDeviate()<br>Determines if the value of the expression contains deviate expressions.
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 TestInitiatingEvent

cpp
inline TestInitiatingEvent(
    std::string name,
    const Context * context
)

Parameters:

  • context The event-tree walk context.
  • name The public element name of the initiating event to test.

function value

cpp
virtual double value() override

Return: true if the initiating event has occurred in the event-tree walk.

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


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