haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Quintiq file version 2.0
#parent: #root
Method CheckAddIterationThreads (LibOpt_Task task, LibOpt_Link link) as Boolean
{
  Description: 'Check if we should add iteration threads to the snapshot'
  TextBody:
  [*
    // jps1 Jun-4-2020 (created)
    
    //Check the snapshotcomponent of the current task
    snapshot := task.SnapshotComponent();
    
    //Check if this is a leaf
    //Please note this method is very similar to LibOpt_SnapshotComponent::CheckNeedsIterationThread and should be aligned with that one
    //Only reason for not directly aligning it is that it is on different objects, and therefore hard to keep the code exactly the same
    return not isnull( snapshot ) and isnull( link );
  *]
  InterfaceProperties { Accessibility: 'Extensible' }
}