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.