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 double | value() override |
Additional inherited members
Public Functions inherited from scram::mef::TestEvent
| 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 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 void | Validate() const<br>Validates the expression. |
| virtual Interval | interval() |
| virtual bool | IsDeviate()<br>Determines if the value of the expression contains deviate expressions. |
| 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 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() overrideReturn: 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
