WCC Framework Design

Source: Internet
Author: User

 

A good framework not only helps program development save a lot of time, but also reduces the introduction of bugs. This framework has been improved based on SSY:

The main points are as follows (this article will be updated gradually as the project is developed)

1. The reflection mechanism is applied to realize the polymorphism of network tasks.

2. the MVC mode is used to independently create a data model, allowing the activity to focus more on interface response and basic business logic.

3. implement multi-threaded read/write operations on databases and local files to avoid read/write conflicts and perform related optimization.

4. added pending and kill functions for tasks to meet wider application requirements.

 

Figure 1.1 is the original framework class diagram:

 

 

Figure 1.2 shows the improved framework class diagram:

 

Figure 1.3 is a sketch of MVC Data encapsulation drawn using staruml temporarily on June 18,. When UML is used for the first time, the logo should be wrong. after learning the time, update it again.

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.