Structure
ATLMatchedRule
Represents an ATL matched rule for declarative transformation.
struct ATLMatchedRule
Overview
Matched rules form the core of ATL’s declarative transformation approach. They are automatically executed for all source elements that match their input patterns and satisfy their optional guard conditions. Each matched rule transforms source elements into one or more target elements through pattern-based specifications.
Overview
Matched rules operate through several key components:
-
Source pattern: Defines the input element type and optional variable binding
-
Guard condition: Optional boolean expression for conditional rule execution
-
Target patterns: Specify the output elements and their property bindings
-
Implicit execution: Rules are triggered automatically by the ATL virtual machine
Example Usage
let member2MaleRule = ATLMatchedRule(
name: "Member2Male",
sourcePattern: ATLSourcePattern(
variableName: "s",
type: "Families!Member"
),
targetPatterns: [
ATLTargetPattern(
variableName: "t",
type: "Persons!Male",
bindings: ["fullName": concatenationExpression]
)
],
guard: genderCheckExpression
)
Topics
Operators
Initializers
Creates a new ATL matched rule.
Instance Properties
The optional guard condition for conditional rule execution.
The name of the matched rule.
The source pattern that defines the input specification.
The target patterns that define the output specifications.
Instance Methods
Default Implementations
Relationships
Conforms To
See Also
Modules and Rules
Represents an ATL (Atlas Transformation Language) module.
Represents an ATL called rule for imperative transformation.
Represents an ATL helper function.