LotSizingDataModel.Instance 2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
ScientificNotationComparison.cs
Go to the documentation of this file.
2
4
5/// <summary>
6/// Keeps declared notation and its comparison with detected notation separate.
7/// </summary>
8public sealed class ScientificNotationComparison
9{
11 string declaredText,
13 UniversalProblemSpecification? declaredSpecification = null,
14 UniversalNotationMatchResult? match = null)
15 {
16 DeclaredText = declaredText ?? string.Empty;
17 Kind = kind;
18 DeclaredSpecification = declaredSpecification;
19 Match = match;
20 }
21
22 public string DeclaredText { get; }
23 public bool HasDeclaredNotation =>
24 !string.IsNullOrWhiteSpace(DeclaredText);
25
27
29
31
32 public string? CanonicalDeclaredNotation =>
33 DeclaredSpecification?.CanonicalText;
34}
Represents the complete result of matching a typed descriptor against a universal problem specificati...
Represents a universal notation interpreted as a problem specification.
ScientificNotationComparison(string declaredText, ScientificNotationComparisonKind kind, UniversalProblemSpecification? declaredSpecification=null, UniversalNotationMatchResult? match=null)