LotSizingDataModel.Core
2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
DistributionCenter.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Xml.Serialization;
3
using
LotSizingDataModel.Core.Common
;
4
5
namespace
LotSizingDataModel.Core.PhysicalModel
;
6
7
/// <summary>
8
/// Represents a distribution center in the supply chain.
9
///
10
/// Corresponds to the UML class "Centre de distribution".
11
/// Its identifier corresponds to c in the source model.
12
/// </summary>
13
[Serializable]
14
[XmlType(TypeName =
"distributionCenter"
)]
15
public
sealed
class
DistributionCenter
:
IdentifiedEntity
16
{
17
/// <summary>
18
/// Initializes an empty distribution center.
19
///
20
/// This public parameterless constructor is required
21
/// by <see cref="XmlSerializer"/>.
22
/// </summary>
23
public
DistributionCenter
()
24
{
25
}
26
27
/// <summary>
28
/// Initializes a distribution center with an identifier and a name.
29
/// </summary>
30
/// <param name="id">
31
/// Numerical identifier corresponding to c
32
/// in the source model.
33
/// </param>
34
/// <param name="name">
35
/// Distribution-center name.
36
/// </param>
37
public
DistributionCenter
(
int
id
,
string
name)
38
{
39
// Initialize distribution center properties
40
Id
= id;
41
Name
= name;
42
}
43
}
LotSizingDataModel.Core.Common.IdentifiedEntity.Id
int Id
Gets or sets the numerical identifier of the entity.
Definition
IdentifiedEntity.cs:29
LotSizingDataModel.Core.Common.IdentifiedEntity.IdentifiedEntity
IdentifiedEntity()
Initializes a new instance of the IdentifiedEntity class.
Definition
IdentifiedEntity.cs:20
LotSizingDataModel.Core.Common.NamedEntity.Name
string Name
Gets or sets the entity name.
Definition
NamedEntity.cs:33
LotSizingDataModel.Core.PhysicalModel.DistributionCenter.DistributionCenter
DistributionCenter()
Initializes an empty distribution center.
Definition
DistributionCenter.cs:23
LotSizingDataModel.Core.PhysicalModel.DistributionCenter.DistributionCenter
DistributionCenter(int id, string name)
Initializes a distribution center with an identifier and a name.
Definition
DistributionCenter.cs:37
LotSizingDataModel.Core.Common
Definition
DoubleTimeSeries.cs:7
LotSizingDataModel.Core.PhysicalModel
Definition
DistributionCenter.cs:5
LotSizingDataModel.Core
PhysicalModel
DistributionCenter.cs
Generated by
1.17.0