| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method VerifyUnitPeriodQuantity ( |  |   MacroPlan macroplan, |  |   Unit unit, |  |   Date periodstart, |  |   Real expectedbottleneckthreshold, |  |   Real expectedoverloadthreshold, |  |   Real expectedbasecapacity, |  |   Real expectedallowedcapacity, |  |   Boolean expectedisexceedoverload, |  |   Boolean expectedisbottleneck, |  |   String stepdescription |  | ) |  | { |  |   TextBody: |  |   [* |  |     unitperiod := minselect( unit, PlanningUnitPeriod.astype( UnitPeriodQuantity ),  |  |                              up, not up.Period_MP().IsHistorical() and up.StartDate()= periodstart, up.Start() ); |  |      |  |     this.VerifyUnitPeriod( periodstart, expectedbottleneckthreshold, unitperiod.BottleneckThreshold(), |  |                            expectedoverloadthreshold, unitperiod.OverloadThreshold(), |  |                            expectedbasecapacity, unitperiod.BaseAvailableCapacity(), |  |                            expectedallowedcapacity, unitperiod.TotalAvailableCapacity(), |  |                            expectedisexceedoverload, unitperiod.IsExceedOverloadThreshold(), |  |                            expectedisbottleneck, unitperiod.IsBottleneck(), stepdescription ); |  |   *] |  |   InterfaceProperties { Accessibility: 'Module' } |  | } | 
 |