Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Function CalcSanityCheckDemandManagementAttributes 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    feedback := construct( Strings ); 
 | 
    sanitycheckfeedback := construct( Strings ); 
 | 
     
 | 
    this.DoSanityCheckDemandManagement( feedback, sanitycheckfeedback ); 
 | 
     
 | 
    mostsevereviolation := SanityCheckCategoryLevel::GetMostSevereSanityCheckViolation( sanitycheckfeedback ); 
 | 
    violationcount := SanityCheckCategoryLevel::GetSanityCheckViolationCount( sanitycheckfeedback, mostsevereviolation ); 
 | 
     
 | 
     
 | 
    this.SanityCheckDemandManagementMostSevere( mostsevereviolation ); 
 | 
    this.SanityCheckDemandManagementMostSevereCount( violationcount ); 
 | 
    this.SanityCheckDemandManagementTotalViolationCount( feedback.Size() ); 
 | 
  *] 
 | 
} 
 |