1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method AssignToUnitPeriodTransportTime ( 
 |    UnitPeriodTransportTimes unitperiodtransporttimes 
 |  ) 
 |  { 
 |    Description: 'Change the shift pattern of the transprort availability for the selections, at the same time create a new transport availability for each of the selection.' 
 |    TextBody: 
 |    [* 
 |      // desmondt May-11-2015 (created) 
 |       
 |      // The most important is to pass the shift pattern, other arguments do not actually matter. 
 |      TransportAvailability::CreateOrUpdateForUnitPeriodTransports( unitperiodtransporttimes, 
 |                                                                    false, '', Duration::Zero(),      //maintenance 
 |                                                                    false, 0,                         //numberofunitopen 
 |                                                                    false, 0.0, 0.0,                  //lot 
 |                                                                    false, 0.0,                       //capacity 
 |                                                                    true, this,                       //shiftPattern 
 |                                                                    false );                          //periodsOnwards 
 |    *] 
 |  } 
 |  
  |