LotSizingDataModel.Core 2.1.0
Core domain model, shared abstractions and XML-serializable entities.
Loading...
Searching...
No Matches
PhysicalTransportFleet.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Xml.Serialization;
4
6
7/// <summary>Optional physical fleet data for an instance. Planning capacity is defined separately.</summary>
8[Serializable]
9public sealed class PhysicalTransportFleet
10{
11 [XmlAttribute("vehicleCount")]
12 public int VehicleCount { get; set; }
13
14 [XmlAttribute("capacityPerVehicle")]
15 public decimal CapacityPerVehicle { get; set; }
16
17 [XmlArray("initialAllocation"), XmlArrayItem("allocation")]
18 public List<PhysicalFleetAllocation> InitialAllocation { get; set; } = new();
19
20 [XmlArray("emptyMovements"), XmlArrayItem("movement")]
21 public List<PhysicalFleetMovement> EmptyMovements { get; set; } = new();
22}
23
24[Serializable]
25public sealed class PhysicalFleetAllocation
26{
27 [XmlElement("warehouse")]
28 public WarehouseReference? Warehouse { get; set; }
29
30 [XmlAttribute("count")]
31 public int Count { get; set; }
32}
33
34[Serializable]
35public sealed class PhysicalFleetMovement
36{
37 [XmlElement("origin")]
38 public WarehouseReference? Origin { get; set; }
39
40 [XmlElement("destination")]
41 public WarehouseReference? Destination { get; set; }
42
43 [XmlAttribute("duration")]
44 public int Duration { get; set; }
45
46 /// <summary>Optional cost for moving one vehicle along this directed empty route.</summary>
47 [XmlIgnore]
48 public decimal? CostPerVehicle { get; set; }
49
50 [XmlAttribute("costPerVehicle")]
52 {
53 get => CostPerVehicle.GetValueOrDefault();
54 set => CostPerVehicle = value;
55 }
56
58}
59
60public sealed partial class TransportResource
61{
62 [XmlElement("physicalFleet")]
64}
decimal? CostPerVehicle
Optional cost for moving one vehicle along this directed empty route.
Optional physical fleet data for an instance. Planning capacity is defined separately.
Represents a serializable reference to a warehouse.