Book a Demo

Author Topic: constraints and context  (Read 22257 times)

son-of-sargasso

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: constraints and context
« Reply #15 on: December 11, 2009, 09:50:13 pm »
(Going back a couple of posts here, bear with me)

I was just saying that constraints on attributes as we model from the generic to the specific, tend to become more and more specific.  Generic was probably a bad term there, when we model from the business to the technology would have been better.  

Constraints on a business object (classifier) become less and less rational as we move into the OO "cleanroom".  I always prefer to put the constraint "at the lowest applicable level" because these aspects tend as the model progresses to get more and more "cleaner" i.e. the "L.A.W." of the constraint becomes both easier to crystalise and later on easier to justify (in the positve sense).  

I was implying by "higher/lower" from the world to the code, not from the specific to the generic as in attribute to datatype.

Anyway.  I like Geert's "rules" but I think an interclass constraint really should be taken out the back door, shot and given a quiet burial.  I mean any class "Fish" that depends on the constraints of class "Bicycle" is just gonna get into a hell of a lotta arguments.

bruce




« Last Edit: December 11, 2009, 09:54:28 pm by barrydrive »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: constraints and context
« Reply #16 on: December 11, 2009, 11:21:42 pm »
Quote
[size=16]...[/size]
Anyway.  I like Geert's "rules" but I think an interclass constraint really should be taken out the back door, shot and given a quiet burial.  I mean any class "Fish" that depends on the constraints of class "Bicycle" is just gonna get into a hell of a lotta arguments.

bruce
You can have inter-class constraints when the constraints on "Fish" depend upon the values (not constraints - typo?) of a mandatorily related "Bicycle".

But, in general, inter-class constraints should be views as potential constraint "smells".

Paolo
« Last Edit: December 11, 2009, 11:23:45 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: constraints and context
« Reply #17 on: December 15, 2009, 07:58:35 am »
Geert,

I agree sometimes a document is necessary to convey all the information, but for our current purposes the diagrams are actually more digestable for the reader and convey all the information required suitably except for constraint information on attributes.  I suggest it would be nice to have this information more accessible in EA in any case.

Paul