2using System.Xml.Serialization;
12[XmlType(TypeName =
"microPeriodCount")]
21 : base(planningHorizon, defaultValue: 1)
27 int defaultMicroPeriodCount)
30 defaultMicroPeriodCount)
54 base.ValidateValue(value, parameterName);
58 throw new ArgumentOutOfRangeException(
61 "A micro-period count must be strictly positive.");
Represents a sequence of integer values indexed by planning period.
int GetValue(int period)
Gets the parameter value for a planning period.
IntegerTimeSeriesParameter()
Initializes an empty period-dependent integer parameter.
void SetValue(int period, int value)
Sets the parameter value for a planning period.
IntegerTimeSeries Values
Gets or sets the parameter values for all planning periods.
IntegerTimeSeries CountByPeriod
MicroPeriodCount(int planningHorizon)
override int DefaultValueForNewPeriods
MicroPeriodCount(int planningHorizon, int defaultMicroPeriodCount)
override void ValidateValue(int value, string parameterName)
Validates one integer value.
void SetCount(int period, int count)