LotSizingDataModel.Core 2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
WorkCenter.cs
Go to the documentation of this file.
1using System;
2using System.Xml.Serialization;
4
6
7/// <summary>
8/// Represents a production work center belonging to a plant.
9///
10/// Corresponds to the UML class "Poste de Charge".
11/// </summary>
12[Serializable]
13[XmlType(TypeName = "workCenter")]
14public sealed partial class WorkCenter : IdentifiedEntity
15{
16 /// <summary>
17 /// Initializes an empty work center.
18 ///
19 /// This public parameterless constructor is required
20 /// by <see cref="XmlSerializer"/>.
21 /// </summary>
22 public WorkCenter()
23 {
24 }
25
26 /// <summary>
27 /// Initializes a work center with an identifier and a name.
28 /// </summary>
29 /// <param name="id">
30 /// Numerical identifier corresponding to p in the source model.
31 /// </param>
32 /// <param name="name">
33 /// Work-center name.
34 /// </param>
35 public WorkCenter(int id, string name)
36 {
37 // Initialize work center properties
38 Id = id;
39 Name = name;
40 }
41}
Base class for model entities that have both a numerical identifier and a name.
WorkCenter(int id, string name)
Initializes a work center with an identifier and a name.
Definition WorkCenter.cs:35
WorkCenter()
Initializes an empty work center.
Definition WorkCenter.cs:22