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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method CreateScenario ( 
 |    String name, 
 |    String datasetname, 
 |    String assumption 
 |  ) 
 |  { 
 |    Description: 
 |    [* 
 |      Create a LibSCIScenario. 
 |      This method is triggered when a ScenarioMP is either created / copied or moved from bin to scenario list 
 |    *] 
 |    TextBody: 
 |    [* 
 |      libsciscenario := LibSCIScenario::FindLibSCIScenarioTypeIndex( datasetname ); 
 |         
 |      // Create a LibSCIScenario 
 |      if( isnull( libsciscenario ) ) 
 |      { 
 |        this.LibSCIScenario( relnew, 
 |                             Uri := datasetname, 
 |                             Name := name, 
 |                             Assumptions := assumption ); 
 |      } 
 |    *] 
 |  } 
 |  
  |