1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Quintiq file version 2.0
| #parent: #root
| StaticMethod ToggleHasIterationsPrecondition (LibOpt_Runs runs) remote
| {
| Description: 'The precondition that is used when we try to toggle the `HasIterations`'
| TextBody:
| [*
| fo := FeedbackObject::LocalFeedback();
|
| value := exists( runs, Elements, run, true,
| not run.HasIterations() );
|
| if( not value
| and exists( runs, Elements, run, true, run.Analysis( relsize ) > 0 ) )
| {
| fo.AddSoft( Translations::LibOpt_Run_CannotDisableIterationsWithAnalysis() );
| }
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|