Quintiq file version 2.0
|
#parent: #root
|
Method GetCapacitySmoothingElements () const declarative as constcontent owning UnitPeriods
|
{
|
Description:
|
[*
|
Return a set of consecutive UnitPeriods of size Unit.CapacitySmoothingLength, starting from this one.
|
If this is not a capacity smoothing head, return empty set.
|
*]
|
TextBody:
|
[*
|
// Wayne Sep-9-2013 (created)
|
value := selectsortedset( this,
|
AsCapacitySmoothingHead.CapacitySmoothingUnitPeriod,
|
csup,
|
csup.CapacitySmoothingSequenceNr() >= this.CapacitySmoothingSequenceNr()
|
and csup.CapacitySmoothingSequenceNr() < this.CapacitySmoothingSequenceNr() + this.Unit().CapacitySmoothingLength(),
|
csup.CapacitySmoothingSequenceNr() );
|
return &value;
|
*]
|
}
|