GridFire v0.7.6rc4.0 General Purpose Nuclear Network

Loading...
Searching...
No Matches
Classes | Namespaces
trigger_result.h File Reference

Structured explanation node for trigger evaluations. More...

`#include <vector>`
`#include <string>`
Include dependency graph for trigger_result.h:
This graph shows which files directly or indirectly include this file:

## Classes
struct | gridfire::trigger::TriggerResult

## Namespaces
namespace | gridfire
namespace | gridfire::trigger

## Detailed Description

Structured explanation node for trigger evaluations.

TriggerResult represents a tree describing why a trigger evaluated to true/false. Each node contains a boolean value, a short name, a human-readable description, and optional nested causes for composite triggers (e.g., AND/OR/NOT).

Example
  // Produce a result and pretty-print it
  gridfire::trigger::TriggerResult r{"A>5", "Threshold passed", true, {}};
  // See procedures/trigger_pprint.h for printWhy()
  // gridfire::trigger::printWhy(r);
  gridfire::trigger::TriggerResult
  Definition trigger_result.h:23