Operation Contract of Software engineering

Source: Internet
Author: User


The operation contract is used to define the system behavior, and the behavior of the system is described in detail according to the change of the object state in domain model;

A use case is a model that describes the behavior of a system, but if the use case is not clearly described, it is supplemented in the Operation contract.

Typically a use case has multiple operations, and an operation requires an action contract, such as:

There are several right-pointing arrows in the SSD that require several operations contracts.

Do not need to write a contract for each operation, only need to be able to change the state or not clear the operation can be written;



Operation contract Templates

Operation:name Cross
Reference: The name of the use case for this operation
precondition: The state of the object of the domain model before performing this operation
postcondition: Change
in Object state Postcondition can be written in:
(1) Creation of instances,
(2) Formation of associations,
(3) modification of attributes;


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.