Defining variants

You can define one variant for each variation point.

Procedure

  1. For each variation point, draw its dependencies to the variant class or object.
  2. For each variant class or object, display the Features window, and select Variant as the Stereotype.
  3. Complete the definition of the variant classes and objects to meet the requirements.

Results

In this example, each variation point has two variants. Each of the classes and objects contains a statechart to define the operation states.

Diagram showing each variation point has two variants

The <<Static>> stereotype (on inheritance) duplicates all features of the static base class into the static derive class including types, operations, attributes, associations, inheritances, ports, dependencies, behavior, and links.


Feedback