LotSizingDataModel.Core 2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
Warehouse.cs
Go to the documentation of this file.
1using System;
2using System.Xml.Serialization;
4
6
7/// <summary>
8/// Represents a warehouse in the supply chain.
9///
10/// A warehouse is either:
11/// - a standalone warehouse;
12/// - or a warehouse attached to a plant.
13///
14/// Corresponds to the UML class "Entrepot".
15/// </summary>
16[Serializable]
17[XmlType(TypeName = "warehouse")]
18public abstract partial class Warehouse : NamedEntity
19{
20 /// <summary>
21 /// Initializes a new instance of the <see cref="Warehouse"/> class.
22 ///
23 /// This constructor is protected because the abstract Warehouse class
24 /// cannot be instantiated directly.
25 /// </summary>
26 protected Warehouse()
27 {
28 }
29
30 /// <summary>
31 /// Initializes a warehouse with a name.
32 /// </summary>
33 /// <param name="name">
34 /// Warehouse name.
35 /// </param>
36 protected Warehouse(string name)
37 {
38 // Initialize warehouse name property
39 Name = name;
40 }
41}
string Name
Gets or sets the entity name.
NamedEntity()
Initializes a new instance of the NamedEntity class.
Warehouse()
Initializes a new instance of the Warehouse class.
Definition Warehouse.cs:26
Warehouse(string name)
Initializes a warehouse with a name.
Definition Warehouse.cs:36