Skip to content

editorGlobalsModelElementRealizationOrchestrator

Class: ModelElementRealizationOrchestrator

Orchestrates in which order concepts are realized. Does so by realizing concepts without dependencies first, and then realizing the depending concepts afterwards

ToDo: Test interplay between events, the assembly that is called regularly to update realizations, and orchestration

Hierarchy

  • ModelElementRealizationOrchestrator

Index

Methods

Methods

Static realizeModelElements

realizeModelElements(sortedElements: IModelElement[], modelElementRealizers: Map‹IModelElement, IModelElementRealizerIModelElement››, changeEvents: Map‹IModelElement, IModelElementEvent›, transformsChangeEvents: Map‹IModelElement, ITransformsChangeEvent›, hintManager?: any): Promise‹void› | void

Defined in src/model/data/Concepts/Realization/ModelElementRealizationOrchestrator.ts:23

Parameters:

Name Type
sortedElements IModelElement[]
modelElementRealizers Map‹IModelElement, IModelElementRealizerIModelElement››
changeEvents Map‹IModelElement, IModelElementEvent
transformsChangeEvents Map‹IModelElement, ITransformsChangeEvent
hintManager? any

Returns: Promise‹void› | void


Static sortModelElementsByRealizationOrder

sortModelElementsByRealizationOrder(modelElements: SetIModelElement›): IModelElement[]

Defined in src/model/data/Concepts/Realization/ModelElementRealizationOrchestrator.ts:19

Defines the order in which IModelElements are supposed to be realized. As each realizer should be provided with the realization results of the model elements its own model element depends on, we have to sort them by dependency.

Parameters:

Name Type Description
modelElements SetIModelElement modelElements to be sorted

Returns: IModelElement[]