Using grasp principle to do UML interaction class diagram-------POS machine instance

Source: Internet
Author: User

Several important grasp principles: 1. Controller mode 2. Creator mode (principle) 3. Information Expert mode (principle) 4. Cohesion Poly-low coupling The pattern described here is not a design pattern for specific events in Java

Several operations for the main success scenario: 1.makemewsale 2.enteritem 3.endsale 4.makepayments

1) Consider the interaction diagram: Refer to the contract of operation to

----Our first consideration is to select the controller for the system operation, according to the controller mode, so to send the message to register as the beginning of the system makenewsal.

-----Second, to create an instance of sale, according to the creator pattern, register is the candidate to create the sale, and there should be a collection in the register to hold the Saleslineitem,

        

Using grasp principle to do UML interaction class diagram-------POS machine instance

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.