Rule Evaluation Result Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
public sealed class RuleEvaluationResult- Inheritance
- Object → RuleEvaluationResult
Remarks
Violations is the canonical, deterministically ordered list of rule violations and is the source of truth for audit and serialization purposes.
ViolationsByIndex is a derived convenience view that maps each point index to all violations whose windows include that index. It is computed lazily on first access.
When serialized to JSON via ToJson(), the result includes both the full canonical violations list and a compact violationsByIndex map suitable for rendering clients. Each entry in the map is a compact reference containing ruleId and triggerIndex only, without duplicating full violation objects.
Properties
| Evaluated | Gets the name of the rule set used for this evaluation, if any. |
| Has | Gets a value indicating whether any rule violations were detected. Equivalent to Violations.Count > 0. |
| Violation | Gets the set of point indexes that are included in at least one violation. |
| Violations | Gets the canonical, deterministically ordered list of detected rule violations. Violations are ordered by TriggerIndex ascending; ties are broken by RuleId in ordinal order. |
| Violations | Gets a map from each point index to the violations whose windows include that index. Computed lazily on first access. |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| From | Reconstructs a RuleEvaluationResult from a JSON string. |
| Get | Serves as the default hash function. (Inherited from Object) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| ToJson | Serializes this rule evaluation result to a JSON string. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |