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
33
34
35
36
37
38
39
40
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod Create ( 
 |    Lane owner, 
 |    StockingPointInLane originspil, 
 |    StockingPointInLane destinationspil, 
 |    Boolean isenabled, 
 |    Date start, 
 |    Date end, 
 |    Boolean hasuserleadtime, 
 |    Duration leadtime, 
 |    Boolean hasuserstandarddeviationleadtime, 
 |    Duration standarddeviationleadtime, 
 |    Real co2Emission 
 |  ) as LaneLeg 
 |  { 
 |    Description: 'Create lane leg' 
 |    TextBody: 
 |    [* 
 |      leg := owner.LaneLeg( relnew, 
 |                            LaneLeg, 
 |                            LaneID := owner.ID(), 
 |                            OriginStockingPointID := originspil.StockingPointID(), 
 |                            DestinationStockingPointID := destinationspil.StockingPointID() ) 
 |       
 |      leg.Update( owner, 
 |                  originspil, 
 |                  destinationspil, 
 |                  isenabled, 
 |                  start, 
 |                  end, 
 |                  hasuserleadtime, 
 |                  leadtime, 
 |                  hasuserstandarddeviationleadtime, 
 |                  standarddeviationleadtime, 
 |                  co2Emission ); 
 |       
 |      return leg; 
 |    *] 
 |  } 
 |  
  |