LotSizingDataModel.Core
2.0.1
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
TransportResource.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>A transport resource with its own shared capacities and costs.</summary>
8
[Serializable]
9
[XmlType(TypeName =
"transportResource"
)]
10
public
sealed
partial class
TransportResource
:
IdentifiedEntity
11
{
12
public
TransportResource
() { }
13
public
TransportResource
(
int
id
,
string
name) {
Id
= id;
Name
= name; }
14
15
/// <summary>Rejects raw legacy XML; use the versioned model serializers to migrate it.</summary>
16
[XmlElement(
"lanes"
)]
17
public
System.Xml.XmlElement?
LegacyLanesGuard
18
{
19
get
=>
null
;
20
set
=>
throw
new
InvalidOperationException(
"Legacy nested lanes require SupplyChainXmlSerializer or LotSizingInstanceXmlSerializer migration."
);
21
}
22
}
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.TransportResource.TransportResource
TransportResource(int id, string name)
Definition
TransportResource.cs:13
LotSizingDataModel.Core.PhysicalModel.TransportResource.TransportResource
TransportResource()
Definition
TransportResource.cs:12
LotSizingDataModel.Core.PhysicalModel.TransportResource.LegacyLanesGuard
System.Xml.? XmlElement LegacyLanesGuard
Rejects raw legacy XML; use the versioned model serializers to migrate it.
Definition
TransportResource.cs:18
LotSizingDataModel.Core.Common
Definition
DoubleTimeSeries.cs:7
LotSizingDataModel.Core.PhysicalModel
Definition
DistributionCenter.cs:5
LotSizingDataModel.Core
PhysicalModel
TransportResource.cs
Generated by
1.17.0