1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method CreateUnitCapacity ( 
 |    MacroPlan macroplan, 
 |    Unit unit, 
 |    DateTime start, 
 |    String timeUnit, 
 |    Real minCapacity, 
 |    Real maxCapacity 
 |  ) 
 |  { 
 |    Description: 'Create (1) unit capacity on unit, with input values.' 
 |    TextBody: 
 |    [* 
 |      // Default = max load & nr of open unit & is from db = false 
 |      maxLoadPercentage := macroplan.GlobalParameters_MP().DefaultMaxLoadPercentage() 
 |      defaultNrOfOpenUnit := 1; 
 |      isFromDB := false; 
 |       
 |      // Create unit capacity 
 |      UnitCapacity::Create( unit, start, timeUnit, minCapacity, maxCapacity, maxLoadPercentage, defaultNrOfOpenUnit, isFromDB ) 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |