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 
 |  StaticMethod Create ( 
 |    LibOpt_Task task 
 |  ) as LibOpt_SnapshotComponent 
 |  { 
 |    Description: 'Create a new instance of the `LibOpt_SnapshotComponent`.' 
 |    TextBody: 
 |    [* 
 |      component := task.Component(); 
 |       
 |      parent := guard( task.Parent().SnapshotComponent(), null( LibOpt_SnapshotComponent ) ); 
 |      snapshot := task.Run().Snapshot( relnew, LibOpt_SnapshotComponent, 
 |                                       Parent := parent, 
 |                                       Name := component.Name(), 
 |                                       ComponentType := component.DefinitionName(), 
 |                                       Component := component, 
 |                                       Task := task ); 
 |       
 |      snapshot.InputScope( relset, task.Scope() ); 
 |       
 |      return snapshot; 
 |    *] 
 |  } 
 |  
  |