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
30
31
32
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method UpdateTestData ( 
 |    MacroPlan macroplan, 
 |    Unit unit, 
 |    Date periodstart, 
 |    Real maxloadratio, 
 |    Boolean updatecapacity, 
 |    Real newmaxload, 
 |    Real efficiency, 
 |    Number nrofunit, 
 |    Duration maintenance, 
 |    Real mincapacity, 
 |    Real maxcapacity 
 |  ) as Stream 
 |  { 
 |    Description: 'Prepare test data' 
 |    TextBody: 
 |    [* 
 |      unitperiod := minselect( unit, PlanningUnitPeriod, up, not up.Period_MP().IsHistorical() and up.StartDate() = periodstart, up.Start() ); 
 |       
 |      periodtask := this->( utf ) 
 |      { 
 |        /* Update unitcapacity or unitavailability if updatecapacity = true after that update periodtask */ 
 |        upt := this->UpdateUnitPeriod( macroplan, unitperiod, updatecapacity, newmaxload, efficiency, nrofunit, maintenance, mincapacity, maxcapacity )  
 |        ->| this->UpdatePeriodTask( periodstart, unitperiod, maxloadratio ); 
 |        return upt; 
 |      }  
 |      return periodtask; 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |