Class S98RuleContext
- Namespace
- EncDotNet.S100.Datasets.Pipelines.Interoperability
- Assembly
- EncDotNet.S100.Core.dll
Inputs to a single S98InteroperabilityRule evaluation: the set of currently-loaded datasets plus optional mariner state (used by rules whose effect depends on viewer settings, e.g. the safety-contour exception to R-101-102-B).
public sealed record S98RuleContext : IEquatable<S98RuleContext>
- Inheritance
-
S98RuleContext
- Implements
- Inherited Members
Constructors
S98RuleContext(IReadOnlyList<LoadedDatasetInfo>, MarinerSettings?)
Inputs to a single S98InteroperabilityRule evaluation: the set of currently-loaded datasets plus optional mariner state (used by rules whose effect depends on viewer settings, e.g. the safety-contour exception to R-101-102-B).
public S98RuleContext(IReadOnlyList<LoadedDatasetInfo> LoadedDatasets, MarinerSettings? Mariner = null)
Parameters
LoadedDatasetsIReadOnlyList<LoadedDatasetInfo>Snapshot of every dataset currently known to the loader. Order is not significant — rules query by product spec / active flag.
MarinerMarinerSettingsActive mariner-settings snapshot, or
nullif rules should fall back to Default. Rules that honour MSC.232(82) §5.8 (safety contour) read SafetyContour from this snapshot.
Properties
EffectiveMariner
Mariner settings to use during evaluation; never null.
public MarinerSettings EffectiveMariner { get; }
Property Value
LoadedDatasets
Snapshot of every dataset currently known to the loader. Order is not significant — rules query by product spec / active flag.
public IReadOnlyList<LoadedDatasetInfo> LoadedDatasets { get; init; }
Property Value
Mariner
Active mariner-settings snapshot, or null if rules should
fall back to Default. Rules that
honour MSC.232(82) §5.8 (safety contour) read
SafetyContour from this snapshot.
public MarinerSettings? Mariner { get; init; }