Book a Demo

Author Topic: Check that instance diagrams match class diagrams?  (Read 4717 times)

Barrie Treloar

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Check that instance diagrams match class diagrams?
« on: February 06, 2017, 12:45:51 pm »
I have a class diagram showing associations, multiplicity, etc.

I then want to detail a scenario by creating instances of these classes. Sparx is not enforcing any of the meta-model I created, i.e. it allows me to create a "link" from an instance to any instance when what I expect is that if the meta-model does not have an association between the two classes that it would be an error to create an association between the two instances.

Am I trying to do something Sparx doesn't support?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Check that instance diagrams match class diagrams?
« Reply #1 on: February 06, 2017, 03:32:02 pm »
No, I don't think Sparx has an out-of-the-box feature that validates you instance model against your class model.

But it has a scripting module, and it seems quite easy to write a script that does that for you.

Geert