Quintiq file version 2.0
|
#parent: #root
|
StaticMethod CreateSuboptimizerScopeElements (LibOpt_Suboptimizer suboptimizer, LibOpt_ScopeElements scopeelements_run)
|
{
|
Description: 'Create `LibOpt_SuboptimizerScopeElements` for the given "suboptimizer" (`LibOpt_Suboptimizer`) using the given set of "scopeelements_run" (`LibOpt_ScopeElements`).'
|
TextBody:
|
[*
|
// Get the set of `LibOpt_ScopeElements` which are relevant for the `LibOpt_Suboptimizer`.
|
scopeelements_relevant_suboptimizer := suboptimizer.GetRelevantScopeElements( scopeelements_run );
|
|
// Create a `LibOpt_SuboptimizerScopeElement` (helper object) for each `LibOpt_ScopeElement` relevant for run `LibOpt_Suboptimizer`.
|
traverse( scopeelements_relevant_suboptimizer, Elements, scopeelement )
|
{
|
LibOpt_SuboptimizerScopeElement::Create( suboptimizer, scopeelement );
|
}
|
*]
|
InterfaceProperties { Accessibility: 'Extensible' }
|
}
|