scram::mef::TestFunctionalEvent
Upon event-tree walk, tests whether a functional event has occurred.
#include <test_event.h>
Inherits from scram::mef::TestEvent, scram::mef::Expression, boost::noncopyable
Public Functions
| Name | |
|---|---|
| TestFunctionalEvent(std::string name, std::string state, 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 TestFunctionalEvent
cpp
inline TestFunctionalEvent(
std::string name,
std::string state,
const Context * context
)Parameters:
- context The event-tree walk context.
- name The public element name of the functional event to test.
- state One of the valid states of the functional event.
function value
cpp
virtual double value() overrideReturn: true if the functional event has occurred and is in given state.
Reimplements: scram::mef::Expression::value
Updated on 2025-11-11 at 16:51:08 +0000
