What is Object Constraint Language (OCL)?
The
Object Constraint Language (OCL) is a declarative language describing rules applying to Unified Modeling Language (UML) models developed at
IBM and is now part of the UML standard.
What is UML?
Unified Modeling language (UML) is a standardized modeling language enabling developers to specify, visualize, construct and document artifacts of a software system. It is widely accepted as the standard description language to use in object-oriented software systems design.
OCL - Use or Not?
Typically, you don't use OCL in UML Class Diagram, except for very specific situations. Most of the time, you can use natural language if you need to specify a constraint. Using natural language makes the model more more legible to those who do not understand OCL.
No comments:
Post a Comment