Interface MergeFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Describes how to create the merged element for one
ElementGroup.
Contract:
- MUST call
aliases.register(newId, oldIds)with the chosen new element id and the ids of all group members. - MUST NOT emit
AddSupportcommands — support edge reconstruction is handled automatically byCompositionOperatorin Phase 2 using the completedAliasRegistry.
-
Method Summary
Modifier and TypeMethodDescriptionmerge(String resultModelName, ElementGroup group, AliasRegistry aliases) Creates the merged element forgroupinsideresultModelNameand registers the mapping inaliases.
-
Method Details
-
merge
Creates the merged element forgroupinsideresultModelNameand registers the mapping inaliases.- Parameters:
resultModelName- name of the result model being builtgroup- the equivalence class to mergealiases- registry to record old-id → new-id mappings- Returns:
- commands that create the merged element (no
AddSupport)
-