Class model is the core of object-oriented analysis, System Class model with package diagrams description, the previous article we analyzed the entity class, interface class, interface control class and use Case control class, in this chapter we will introduce the system class model design, first briefly introduces the class model design method, then designs the subsystem class model, finally designs the system class model.
1. Design method
Design the system class model to make clear the composition of the subsystem or system, and the relationship between the various components, Subsystem division and the previous introduction of the interface class package is the same, mainly include: Document processing, in-process, conference management, file management, Bulletin management, personal assistant, System Management, user login 8 subsystems, Both the subsystem model and the system class model include the interface class package, the interface control class package, the use Case control class package and the relational entity class package. As we know before, interface class-dependent interface control class, interface control class depend on use case control class, use Case control class and entity class, they are all dependencies.
2. Subsystem class model
We still use a dispatch to do the explanation, introduced the dispatch processing subsystem model design. The entity classes that are related to the dispatch subsystem are SFILEPACK packages, archive packages and pending classes, which are dependent on each other, that is, the Uidraftsfilepack, Uiauditsfilepack in the interface class Uisfilepack package, The Uichecksfilepack, Uisignsfilepack, Uienresfilepack, and uisendsfilepack packages are dependent on the Uicsfilepack in the interface control class Uicdraftsfilepack package respectively, Uicauditsfilepack, Uicchecksfilepack, Uicsignsfilepack, Uicenresfilepack and Uicsendsfilepack packs, The interface controls the Uicdraftsfilepack, Uicauditsfilepack, Uicchecksfilepack, Uicsignsfilepack in the class package, The Uicenresfilepack and Uicsendsfilepack packages are also dependent on the Ucdraftsfile, Ucauditsfile, Ucchecksfile, UCSignSFile, ucsfilepack in the use Case control class, respectively. Ucenresfile and Ucsendsfile classes, use Case control class Ucsfilepack package each class is dependent on entity classes Sfile and pending, use case control class Ucdraftsfile and ucenresfile all depend on entity classes Enresfile, the use-case control class Ucsendsfile depends on the entity class sfilearchive.
3. System Class Model
After the model of each subsystem is established, the system class model can be established, and the relationship between each subsystem can be understood by the system class model. The class model of the system's entity class, interface class and two control classes have been established before, we will join the relationship between them, get the system class model, in the interface class package Uisystem, Uisfilepack, Uirfilepack, Uimeetingpack, Uiarchivepack, Uinoticepack, Uiassistantpack, Uisystempack, and FrmLogin8 packages, respectively, depend on the Uicsystem in the interface control class package Uicsfilepack, Uicrfilepack, Uicmeetingpack, Uicarchivepack, Uicnoticepack, Uicassistantpack, Uicsfilepack and Uiclogin, Interface Control class Package Uicsystem Uicsfilepack, Uicrfilepack, Uicmeetingpack, Uicarchivepack, Uicnoticepack, Uicassistantpack, Uicsystempack and UICLogin8 packages, respectively, depend on the Ucsfilepack, Ucrfilepack, Ucmeetingpack, Ucarchivepack, Ucnoticepack, in the use Case control class package, Ucassistantpack, Ucsystempack and UCLOGIN8 packages. Use case control class Ucsfilepack package relies on entity class Sfilepack package, use Case control class Ucrfilepack package relies on entity class Rfilepack package, use Case control class Ucmeetingpack package depends on entity class Meetingpack package, use case Control classes Ucsfilepack, Ucrfilepack, Ucmeetingpack, Ucarchivepack, and ucassistantpack packages all depend on the entity class Archivepack package, use Case control class Ucnoticepack package Depending on the entity notice, the use Case control class Ucsfilepack, Ucrfilepack, Ucmeetingpack, Ucnoticepack, and ucassistantpack packages all depend on the entity class pending, and the use Case control class Ucassistantpack, Ucsystempack packages, and uclogin packages all depend on entity class user. The following are system classesModel Diagram
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/project/