6using System.ComponentModel;
7using System.Xml.Serialization;
28 [XmlElement(
"purchasePrice")]
31 get => _purchasePrice;
34 if (ReferenceEquals(_purchasePrice, value))
40 if (_purchasePrice is not
null)
42 _purchasePrice.PropertyChanged -=
43 OnPurchasePricePropertyChanged;
46 _purchasePrice = value;
49 if (_purchasePrice is not
null)
51 _purchasePrice.PropertyChanged +=
52 OnPurchasePricePropertyChanged;
66 [XmlElement(
"capacityConstraint")]
69 get => _capacityConstraint;
72 if (ReferenceEquals(_capacityConstraint, value))
77 if (_capacityConstraint is not
null)
79 _capacityConstraint.PropertyChanged -=
80 OnCapacityConstraintPropertyChanged;
83 _capacityConstraint = value;
85 if (_capacityConstraint is not
null)
87 _capacityConstraint.PropertyChanged +=
88 OnCapacityConstraintPropertyChanged;
139 throw new ArgumentOutOfRangeException(
142 "The planning horizon cannot be negative.");
163 private void OnCapacityConstraintPropertyChanged(
165 PropertyChangedEventArgs e)
172 private void OnPurchasePricePropertyChanged(
174 PropertyChangedEventArgs e)
virtual void OnPropertyChanged([CallerMemberName] string? propertyName=null)
Raises the PropertyChanged event.
Represents a maximum-capacity constraint defined for each planning period.
Represents the unit purchase price of an item bought from a supplier during each planning period.
Represents the ability of a supplier to deliver a given item to a given warehouse inventory.
bool HasConsistentPlanningHorizon
int PlanningHorizon
Gets the planning horizon represented by the purchase-price time series.
PurchasePrice? PurchasePrice
Gets or sets the unit purchase price of the item for each planning period.
bool HasDecisionParameters
Gets a value indicating whether this delivery contains at least one decision-model parameter.
CapacityConstraint? CapacityConstraint
Gets or sets the maximum procurement quantity available from this supplier for this item and destinat...
void ResizeTimeSeries(int periodCount)
Resizes the purchase-price time series.
void ClearDecisionParameters()
Removes the purchase-price parameter from this supplier delivery.
int PlanningHorizon
Gets the number of planning periods currently represented by the object's time-dependent data.