1using System.Collections.ObjectModel;
10 private readonly IReadOnlyList<InstanceDiagnostic> _diagnostics;
13 IEnumerable<InstanceDiagnostic> diagnostics)
15 ArgumentNullException.ThrowIfNull(diagnostics);
18 diagnostics.ToArray();
21 new ReadOnlyCollection<InstanceDiagnostic>(
26 diagnostic => diagnostic.IsBlocking);
31 diagnostic.Severity ==
41 canExportAsValidatedInstance:
79 diagnostic => diagnostic.IsBlocking);
87 diagnostic.Severity ==
Represents one structured diagnostic produced while checking the semantic validity of a lot-sizing in...
bool HasWarnings
Gets a value indicating whether at least one warning exists.
int BlockingIssueCount
Gets the number of blocking diagnostics.
InstanceModelCheckResult(IEnumerable< InstanceDiagnostic > diagnostics)
int WarningCount
Gets the number of warnings.
InstanceValidationCapabilities Capabilities
Gets downstream-operation capabilities derived from the validation result.
IReadOnlyList< InstanceDiagnostic > Diagnostics
Gets all diagnostics in deterministic evaluation order.
bool HasBlockingIssues
Gets a value indicating whether at least one Error or Fatal diagnostic exists.
bool IsValid
Gets a value indicating whether the instance has no blocking structural or semantic issue.
Describes which downstream operations are permitted after instance-model validation.
InstanceDiagnosticSeverity
Indicates the severity of one semantic instance diagnostic.