Quintiq file version 2.0
|
#parent: #root
|
FunctionOverride CalcHasFulfilledMinimumLoadThreshold
|
{
|
TextBody:
|
[*
|
value := true;
|
|
//UP Time Aggregation will not have min load threshold %.
|
//However the min load defined in the childre will be reflected in its MinCapacity
|
|
if( this.IsPlanning()
|
and this.MinCapacity() > Duration::Zero() )
|
{
|
gp := this.MacroPlan().GlobalParameters_MP()
|
|
value := this.PenaltyCapacityInDuration() <= Duration::Zero()
|
or guard( gp.GetIsBalanceWithinTolerance( this.PenaltyCapacityInDuration().HoursAsReal(), 0.0 ), false );
|
|
}
|
|
this.HasFulfilledMinimumLoadThreshold( value );
|
*]
|
}
|