# US 8,578,324 B2 · Variability layer for domain-specific modeling languages

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,324 B2
- Document ID: US8578324B2
- Status: Granted
- Kind: B2
- Application number: 12/049,396
- Filed: 2008-03-17
- Published: 2009-09-17
- Granted: 2013-11-05
- Earliest claimed: 2008-03-17
- Assignees: International Business Machines Corporation
- Applicants: Alan Hartman; Julia Rubin; Tal Haham
- Inventors: Alan Hartman; Julia Rubin; Tal Haham
- Web page: https://patentgrep.com/patent/US8578324B2

## CPC

- G06F 8/35: model driven
- G06F 30/00: Computer-aided design [CAD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems are provided for adding variability support for a modeling language. Developers may utilize the added support to transform a model written in a preexisting domain-specific modeling language for product line development in which there is structural and configurational diversity. A variability layer is incorporated into the model, which permits product developers to better use the language to model product line variants.

## Claims

### Claim 1

A computer-implemented method for modeling, comprising the steps of:
using a domain specific modeling language to prepare a first model of a subject, the subject having variants, said first model comprising elements, wherein;
creating a second model of the subject that comprises a variability layer having variability elements, the variability elements having respective configuration conditions linked thereto, the configuration conditions comprising Boolean expressions,
adding the second model to the first model as a separate layer on the first model to thereby produce a combined model by attaching said variability elements to at least a portion of said elements of said first model, wherein the elements of the first model are unchanged by the step of adding the second model;
implementing an instance of the combined model by assigning respective constraint values to the configuration conditions;
making respective evaluations of the configuration conditions of said variability elements in the combined model; and
classifying said variability elements for inclusion in different ones of said variants responsively to the respective evaluations of said configuration conditions.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said variability elements of the second model comprise at least one of: an optional variability element, which is included in the variants only when the respective configuration condition linked thereto evaluates to a Boolean value True;
alternative variability elements, wherein exactly one of the alternative variability elements is included in the variants when the configuration condition linked thereto evaluates to the Boolean value True;
selective variability elements, wherein zero or more of the selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True;
cardinality-based selective variability elements cardinality upper bound, wherein a number of the cardinality-based selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True, and wherein the number is no greater than the cardinality upper bound; and
mutually inclusive variability elements, wherein a set of the mutually inclusive variability elements are included in the variants, the set being selected from a first subset consisting of none of the mutually inclusive variability elements and a second subset consisting of all of the mutually inclusive variability elements.

### Claim 3 (depends on 1)

The method according to claim 1, wherein said variability elements of the second model comprise an optional variability element, which is included in the variants only when the respective configuration condition linked thereto evaluates to a Boolean value True;
alternative variability elements, wherein exactly one of the alternative variability elements is included in the variants when the configuration condition linked thereto evaluates to the Boolean value True;
selective variability elements, wherein zero or more of the selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True;
cardinality-based selective variability elements cardinality upper bound, wherein a number of the cardinality-based selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True, and wherein the number is no greater than the cardinality upper bound; and
mutually inclusive variability elements, wherein a set of the mutually inclusive variability elements are included in the variants, the set being selected from a first subset consisting of none of the mutually inclusive variability elements and a second subset consisting of all of the mutually inclusive variability elements.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising the step of specializing said variability elements as a stereotype, said stereotype being constructed in said separate layer.

### Claim 5 (depends on 1)

The method according to claim 1, wherein assigning respective constraint values further comprises the step of defining said configuration conditions over multiple constraint variables.

### Claim 6 (depends on 1)

The method according to claim 1, wherein adding the second model comprises constructing a profile, said profile comprising a plurality of stereotypes, said stereotypes being constructed in said separate layer.

### Claim 7

A computer software product for modeling, including a computer storage medium in which computer program instructions are stored, which instructions, when executed by a computer, cause the computer to perform the steps of:
using a domain specific modeling language to prepare a first model of a subject, the subject having variants, said first model comprising elements, wherein;
creating a second model of the subject that comprises a variability layer having variability elements, the variability elements having respective configuration conditions linked thereto, the configuration conditions comprising Boolean expressions, adding the second model to the first model as a separate layer on the first model to thereby produce a combined model by attaching said variability elements to at least a portion of said elements of said first model, wherein the elements of the first model are unchanged by the step of adding the second model;
implementing an instance of the combined model by assigning respective constraint values to the configuration conditions;
making respective evaluations of the configuration conditions of said variability elements in the instance of the combined model;
and classifying said variability elements for inclusion in different ones of said variants responsively to the respective evaluations of said configuration conditions.

### Claim 8 (depends on 7)

The computer software product according to claim 7, wherein said variability elements of the second model comprise at least one of
an optional variability element, which is included in the variants only when the respective configuration condition linked thereto evaluates to a Boolean value True;
alternative variability elements, wherein exactly one of the alternative variability elements is included in the variants when the configuration condition linked thereto evaluates to the Boolean value True;
selective variability elements, wherein zero or more of the selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True;
cardinality-based selective variability elements cardinality upper bound, wherein a number of the cardinality-based selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True, and wherein the number is no greater than the cardinality upper bound; and
mutually inclusive variability elements, wherein a set of the mutually inclusive variability elements are included in the variants, the set being selected from a first subset consisting of none of the mutually inclusive variability elements and a second subset consisting of all of the mutually inclusive variability elements.

### Claim 9 (depends on 7)

The computer software product according to claim 7, wherein said variability elements of the second model comprise
an optional variability element, which is included in the variants only when the respective configuration condition linked thereto evaluates to a Boolean value True;
alternative variability elements, wherein exactly one of the alternative variability elements is included in the variants when the configuration condition linked thereto evaluates to the Boolean value True;
selective variability elements, wherein zero or more of the selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True;
cardinality-based selective variability elements cardinality upper bound, wherein a number of the cardinality-based selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True, and wherein the number is no greater than the cardinality upper bound; and
mutually inclusive variability elements, wherein a set of the mutually inclusive variability elements are included in the variants, the set being selected from a first subset consisting of none of the mutually inclusive variability elements and a second subset consisting of all of the mutually inclusive variability elements.

### Claim 10 (depends on 7)

The computer software product according to claim 7, wherein said computer is further instructed to incorporate said variability layer as a profile, said profile comprising a plurality of stereotypes, said stereotypes being constructed in said separate layer.

### Claim 11

A computer-implemented method for modeling, comprising the steps of:
using a domain specific modeling language to prepare a first model of a subject, the subject having variants, said first model comprising elements, wherein the first model lacks provision for variability support;
creating a second model of the subject that comprises a variability layer having variability elements, the variability elements having respective configuration conditions linked thereto, the configuration conditions comprising Boolean expressions, adding the second model to the first model as a separate layer on the first model to thereby produce a combined model by attaching said variability elements to at least a portion of said elements of said first model, wherein the elements of the first model are unchanged by the step of adding the second model;
implementing an instance of the combined model by assigning respective constraint values to the configuration conditions;
making respective evaluations of the configuration conditions of said variability elements in the combined model; and
classifying said variability elements for inclusion in different ones of said variants responsively to the respective evaluations of said configuration conditions.

### Claim 12 (depends on 11)

The method according to claim 11, wherein said variability elements comprise at least one of:
an optional variability element, which is included in the variants only when the respective configuration condition linked thereto evaluates to a Boolean value True;
alternative variability elements, wherein exactly one of the alternative variability elements is included in the variants when the configuration condition linked thereto evaluates to the Boolean value True;
selective variability elements, wherein zero or more of the selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True;
cardinality-based selective variability elements cardinality upper bound, wherein a number of the cardinality-based selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True, and wherein the number is no greater than the cardinality upper bound; and
mutually inclusive variability elements, wherein a set of the mutually inclusive variability elements are included in the variants, the set being selected from a first subset consisting of none of the mutually inclusive variability elements and a second subset consisting of all of the mutually inclusive variability elements.

### Claim 13

A computer-implemented method for modeling, comprising the steps of:
using a domain specific modeling language to prepare a first model of a subject, the subject having variants, the first model comprising elements, wherein the first model lacks provision for variability support;
creating a second model of the subject that comprises a variability layer having variability elements, the variability elements having respective configuration conditions linked thereto, the configuration conditions comprising Boolean expressions, wherein the variability elements comprise:
an optional variability element, which is included in the variants only when the respective configuration condition linked thereto evaluates to a Boolean value True;
alternative variability elements, wherein exactly one of the alternative variability elements is included in the variants when the configuration condition linked thereto evaluates to the Boolean value True;
selective variability elements, wherein zero or more of the selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True;
cardinality-based selective variability elements cardinality upper bound, wherein a number of the cardinality-based selective variability elements are included in the variants when the respective configuration condition linked thereto evaluates to the Boolean value True, and wherein the number is no greater than the cardinality upper bound; and
mutually inclusive variability elements, wherein a set of the mutually inclusive variability elements are included in the variants, the set being selected from a first subset consisting of none of the mutually inclusive variability elements and a second subset consisting of all of the mutually inclusive variability elements;
adding the second model to the first model as a separate layer on the first model to thereby produce a combined model by attaching the variability elements to at least a portion of the elements of the first model as conditional elements, wherein the elements of the first model are unchanged by the step of adding the second model;
in an instance of the combined model assigning respective constraint values to the configuration conditions;
making respective evaluations of the configuration conditions of the variability elements in the instance of the combined model; and
classifying the conditional elements for inclusion in different ones of the variants responsively to the respective evaluations of the configuration conditions.

### Claim 14 (depends on 13)

The method according to claim 13, further comprising the step of specializing the variability elements as a stereotype, the stereotype being constructed in the separate layer.

### Claim 15 (depends on 13)

The method according to claim 13, wherein assigning respective constraint values further comprises the step of defining the configuration conditions over multiple constraint variables.

### Claim 16 (depends on 13)

The method according to claim 13, wherein adding the second model comprises constructing a profile, the profile comprising a plurality of stereotypes, the stereotypes being constructed in the separate layer.
