LotSizingDataModel.Instance 2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
ScientificConceptReference.cs
Go to the documentation of this file.
2
3/// <summary>
4/// Identifies one named scientific concept together with its taxonomic
5/// category.
6/// </summary>
7public sealed class ScientificConceptReference
8{
10 string code,
11 string name,
13 {
14 if (string.IsNullOrWhiteSpace(code))
15 {
16 throw new ArgumentException(
17 "A scientific concept code is required.",
18 nameof(code));
19 }
20
21 if (string.IsNullOrWhiteSpace(name))
22 {
23 throw new ArgumentException(
24 "A scientific concept name is required.",
25 nameof(name));
26 }
27
28 Code = code.Trim();
29 Name = name.Trim();
30 Category = category;
31 }
32
33 public string Code { get; }
34 public string Name { get; }
36
37 public override string ToString() =>
38 $"{Code} [{Category}]";
39}
ScientificConceptReference(string code, string name, ScientificConceptCategory category)
ScientificConceptCategory
Distinguishes scientific concept categories that must not be conflated when describing a lot-sizing i...