Book a Demo

Author Topic: Introducing variations points  (Read 13084 times)

MagnusH

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Introducing variations points
« on: August 18, 2009, 11:43:46 pm »
Hi,

Do you have any suggestion how variability can be expressed in a good way in the tool/UML?

An example to explain the question. I have a UML component that models a set of C files. In the files I have a #ifdef ENABLE_BLUETOOTH. I want to show this in the UML model, i.e. in the component, in order to highlight that this component can be built with or without support for Bluetooth.

Thank,
Magnus
« Last Edit: August 18, 2009, 11:44:21 pm by MagnusH »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Introducing variations points
« Reply #1 on: August 19, 2009, 04:14:05 pm »
Why don't you add an attribute "Bluetooth_enabled" of type boolean to your component.
If you then model instances of this component you can set the "Run State" of the component filling in the "Bluetoot_enabled" attribute with true or false.
This way you can visually see the difference between a deployment with or without bluetooth support.

Geert

MagnusH

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: Introducing variations points
« Reply #2 on: August 19, 2009, 10:58:35 pm »
Thanks for your answer. Funny that we internally discussed the same solution as you propose. The conclusion must be that this is the ultimate way of doing this  :)

// Magnus

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Introducing variations points
« Reply #3 on: August 19, 2009, 11:05:02 pm »
I think this is one of those: There is more then one correct answer cases. Whether it is "ultimate" I dare not say, but it is certainly acceptable.

Geert