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.
1
namespace
LotSizingDataModel.Instance.Taxonomy
;
2
3
/// <summary>
4
/// Identifies one named scientific concept together with its taxonomic
5
/// category.
6
/// </summary>
7
public
sealed
class
ScientificConceptReference
8
{
9
public
ScientificConceptReference
(
10
string
code,
11
string
name,
12
ScientificConceptCategory
category)
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
; }
35
public
ScientificConceptCategory
Category
{
get
; }
36
37
public
override
string
ToString
() =>
38
$
"{Code} [{Category}]"
;
39
}
LotSizingDataModel.Instance.Taxonomy.ScientificConceptReference.Code
string Code
Definition
ScientificConceptReference.cs:33
LotSizingDataModel.Instance.Taxonomy.ScientificConceptReference.Name
string Name
Definition
ScientificConceptReference.cs:34
LotSizingDataModel.Instance.Taxonomy.ScientificConceptReference.Category
ScientificConceptCategory Category
Definition
ScientificConceptReference.cs:35
LotSizingDataModel.Instance.Taxonomy.ScientificConceptReference.ToString
override string ToString()
Definition
ScientificConceptReference.cs:37
LotSizingDataModel.Instance.Taxonomy.ScientificConceptReference.ScientificConceptReference
ScientificConceptReference(string code, string name, ScientificConceptCategory category)
Definition
ScientificConceptReference.cs:9
LotSizingDataModel.Instance.Taxonomy
Definition
PlanningParadigmKind.cs:1
LotSizingDataModel.Instance.Taxonomy.ScientificConceptCategory
ScientificConceptCategory
Distinguishes scientific concept categories that must not be conflated when describing a lot-sizing i...
Definition
ScientificConceptCategory.cs:8
LotSizingDataModel.Instance
Taxonomy
ScientificConceptReference.cs
Generated by
1.17.0