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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method UpdateDefaultUnitAvailabilities 
 |  { 
 |    Description: 'Update values of default unit availabilities so that they match the new values of global params.' 
 |    TextBody: 
 |    [* 
 |      shiftpattern := select( this, MacroPlan.ShiftPattern, sp, sp.Name() = this.DefaultShiftPatternName() ); 
 |       
 |      traverse( this, MacroPlan.Unit.UnitAvailability, ua, ua.IsDefault() ) 
 |      { 
 |        ua.Update( ua.Unit(), 
 |                   ua.Start(),  
 |                   ua.TimeUnit(),  
 |                   ua.Maintenance(),  
 |                   this.DefaultEfficiency(),  
 |                   ua.Allocation(),  
 |                   shiftpattern, 
 |                   ua.MaximumLoadPercentage(),  
 |                   ua.NrOfUnitsOpen(),  
 |                   ua.MinimumLoadThreshold(),  
 |                   not ua.IsManuallyConfigured() );  
 |      } 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |