Class RuleFired
What one rule did with one reading.
public sealed record RuleFired : IEquatable<RuleFired>
- Inheritance
-
RuleFired
- Implements
- Inherited Members
Constructors
RuleFired(string, Edge, float, IReadOnlyList<RuleAction>)
What one rule did with one reading.
public RuleFired(string Rule, Edge Edge, float Reading, IReadOnlyList<RuleAction> Actions)
Parameters
RulestringThe rule's name.
EdgeEdgeWhether its condition set or cleared.
ReadingfloatThe reading that did it.
ActionsIReadOnlyList<RuleAction>What the rule calls for on this edge: its
thenactions when it set and itsotherwiseactions when it cleared, in the order the file gives them.
Properties
Actions
What the rule calls for on this edge: its then actions when it set and its
otherwise actions when it cleared, in the order the file gives them.
public IReadOnlyList<RuleAction> Actions { get; init; }
Property Value
Edge
Whether its condition set or cleared.
public Edge Edge { get; init; }
Property Value
Reading
The reading that did it.
public float Reading { get; init; }
Property Value
Rule
The rule's name.
public string Rule { get; init; }