The Object Constraint Language: Getting Your Models Ready for MDA (2nd Edition)
When starting a new model, the first step is to build a number of diagrams. The most important diagram in the model is the class diagram. Because any model is structured around classes or components , this is where all information in the model is focused. The use of OCL strongly relies on the types (classes, datatypes, and so on) defined in a UML class diagram. This diagram should be built first. Other diagrams can be built according to need and taste. The second step is to identify where the need for explicitly stating extra information lies. Following are some of the obvious situations that call for additional information:
The following sections describe a number of situations in which adding expressions to the diagrams is necessary to obtain a complete and unambiguous model. |