LotSizingDataModel.Instance 2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
ScientificConceptCatalog.cs
Go to the documentation of this file.
2
3/// <summary>
4/// Provides a small canonical concept catalog used to keep scientific
5/// categories separated before historical mappings are introduced.
6/// </summary>
7/// <remarks>
8/// This catalog is taxonomic metadata. It does not assert that a given
9/// instance belongs to any listed concept.
10/// </remarks>
11public static class ScientificConceptCatalog
12{
13 public static ScientificConceptReference Mrp { get; } =
14 new(
15 code: "MRP",
16 name: "Material Requirements Planning",
17 category:
18 ScientificConceptCategory.PlanningParadigm);
19
20 public static ScientificConceptReference Drp { get; } =
21 new(
22 code: "DRP",
23 name: "Distribution Requirements Planning",
24 category:
25 ScientificConceptCategory.PlanningParadigm);
26
28 new(
29 code: "BY",
30 name: "Bitran-Yanasse temporal classification",
31 category:
32 ScientificConceptCategory.HistoricalClassification);
33
34 public static IReadOnlyList<ScientificConceptReference> All { get; } =
35 new[]
36 {
37 Mrp,
38 Drp,
40 };
41
43 string code)
44 {
45 if (string.IsNullOrWhiteSpace(code))
46 {
47 return null;
48 }
49
50 return All.FirstOrDefault(
51 concept =>
52 concept.Code.Equals(
53 code.Trim(),
54 StringComparison.OrdinalIgnoreCase));
55 }
56}
Provides a small canonical concept catalog used to keep scientific categories separated before histor...
static IReadOnlyList< ScientificConceptReference > All
static ? ScientificConceptReference FindByCode(string code)
Identifies one named scientific concept together with its taxonomic category.
ScientificConceptCategory
Distinguishes scientific concept categories that must not be conflated when describing a lot-sizing i...