| Quintiq file version 2.0 | 
| #parent: #root | 
| Method GetMaximalOutOfScope ( | 
|   const LibOpt_Scope scope | 
| ) const as constcontent owning StockingPointInPeriods | 
| { | 
|   TextBody: | 
|   [* | 
|     assert( not scope.Contains( this.SPIPInOptimizerRun() ), 'SPIP needs to be out of scope' );  | 
|     value := construct(  StockingPointInPeriods, constcontent );  | 
|     current := this;  | 
|     while( not isnull( current )  | 
|            and not scope.Contains( current.SPIPInOptimizerRun() ) )  | 
|     { | 
|       value.Add( current );  | 
|       current := current.NextSPIPPlanning();  | 
|     } | 
|     return &value | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |