Class RefineOperator

java.lang.Object
ca.mcscert.jpipe.operators.CompositionOperator
ca.mcscert.jpipe.operators.builtin.RefineOperator

public final class RefineOperator extends CompositionOperator
Built-in refine composition operator.

Syntax:

justification result is refine(base, refinement) {
    hook: "elementId"
}

Semantics: the hook element (identified by its id in the first source model) and the conclusion of the second source (refinement) are merged into a single SubConclusion named "hook". All other elements are kept with their source model name as id prefix (e.g. base:c, refinement:s).

The hook id is resolved through the unit alias map, so it can refer to an element that was renamed by a prior composition step (e.g. unification after assemble).