Quintiq file version 2.0
|
#parent: #root
|
Method GetIsHigherLevelPeriodSpecification (
|
PeriodSpecification_MP ps,
|
DateTime start,
|
DateTime end
|
) declarative remote as Boolean
|
{
|
TextBody:
|
[*
|
// ODE2 May-11-2017 (created)
|
|
psstartperiod := ps.GetFirstNonDeletedPeriod();
|
ishigherlevelplanning := guard( psstartperiod.Start() < end, false )
|
and ps.End() > start
|
and( ps.TimeUnitLevel() < this.TimeUnitLevel()
|
or( ps.TimeUnitLevel() = this.TimeUnitLevel() and ps.NrOfTimeUnit() < this.NrOfTimeUnit() ) );
|
|
return ishigherlevelplanning;
|
*]
|
}
|