Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Function CalcSanityCheckQuantityInInputGroupAttributes 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    if ( not this.PeriodTask_MP().MacroPlan().IsMetaOptimizerRunning() )  
 | 
    { 
 | 
      feedback := construct( Strings ); 
 | 
      sanitycheckfeedback := construct( Strings ); 
 | 
     
 | 
      this.DoSanityCheckGroupQuantityInInputGroup( feedback, sanitycheckfeedback ); 
 | 
       
 | 
      mostseveryviolation := SanityCheckCategoryLevel::GetMostSevereSanityCheckViolation( sanitycheckfeedback ); 
 | 
      violationcount := SanityCheckCategoryLevel::GetSanityCheckViolationCount( sanitycheckfeedback, mostseveryviolation ); 
 | 
       
 | 
       
 | 
      this.SanityCheckQuantityInInputGroupMostSevere( mostseveryviolation ); 
 | 
      this.SanityCheckQuantityInInputGroupMostSevereCount( violationcount ); 
 | 
      this.SanityCheckQuantityInInputGroupTotalViolationCount( feedback.Size() ); 
 | 
    } 
 | 
  *] 
 | 
} 
 |