13.12. Operation Contracts Within the UP

A pre- and postcondition contract is a well-known style to specify an operation in the UML. In the UML, operations exists at many levels, from System down to fine-grained classes, such as Sale. Operation specification contracts for the System level are part of the Use-Case Model, although they were not formally highlighted in the original RUP or UP documentation; their inclusion in this model was verified with the RUP authors.[1]

[1] Private communication.

Phases

Inception— Contracts are not motivated during inception—they are too detailed.

Elaboration— If used at all, most contracts will be written during elaboration, when most use cases are written. Only write contracts for the most complex and subtle system operations.

Artifacts Relationships

Relationships between contracts and other artifacts, at different levels of detail, are shown in Figure 13.2 and Figure 13.3.

Figure 13.2. Sample UP artifact influence.


Figure 13.3. Contract relationship to other artifacts.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.101.110