当前位置:网站首页>Software architecture and design (VI) -- hierarchy
Software architecture and design (VI) -- hierarchy
2022-07-28 15:43:00 【Liu Yiyi】
Hierarchy body
Hierarchy regards the whole system as a hierarchy , The software system is decomposed into logical modules or subsystems at different levels in the hierarchy . This method is usually used to design system software , Such as network protocol and operating system .
In the system software hierarchy design , The lower subsystem provides services to its adjacent upper subsystem , Thus calling lower level methods . The lower layer provides more specific functions , for example I / O service , Business , Dispatch , Security services, etc . The middle tier provides more domain related functions , Such as business logic and core processing services . and , The upper layer provides services such as GUI,shell More abstract functions in the form of user interfaces such as programming facilities .
It is also used to organize class libraries , Such as... In the namespace hierarchy .NET Class library . All design types can implement this hierarchy , And often combined with other architectural styles .
The layered architectural style is divided into -
- Main subprogram
- Master-slave
- virtual machine
Main subprogram
The purpose of this style is to reuse modules and freely develop a single module or subroutine . In this style , The software system is divided into subprograms by using top-down refinement according to the required functions of the system .
These refinements are vertically leading , Until the decomposed module is simple enough to bear exclusive responsibility . Functions can be reused and shared by multiple callers at the upper level .
There are two ways to pass data to subroutines as parameters , namely -
Pass value - Subroutines use only past data , But it can't be modified .
By reference &minu; Use subroutines and change the value of data referenced by parameters .

advantage
边栏推荐
- Common methods of qcustomplot drawing tools
- 程序员的自我修养
- Flowable workflow all business concepts
- 基于RSocket协议实现客户端与服务端通信
- Has won Huawei's 8.5 billion yuan screen order? Vicino responded: the customer asked for confidentiality and could not reply!
- MATLAB不覆盖导入EXCEL
- VS使用技巧
- 根据输入target,返回数组的两个下标。
- Deutsche Telekom denied strengthening its cooperation with Huawei and said it had reduced its cooperation with Huawei in the past three years
- 关于Simulink如何生成模型覆盖率报告
猜你喜欢

Self cultivation of programmers

Tencent interview -- please design a thread pool to implement sequential execution

堆操作

Minimum heap improves the efficiency of each sort

融云实时社区解决方案

Canoe tutorial

Perception of life

Editor in ArcGIS Pro

使用Mock技术帮助提升测试效率的小tips,你知道几个?

Communication between client and server based on rsocket protocol
随机推荐
一波骚操作解决Laya场景编辑器报错问题
shell编程规范与变量
详解.NET的求复杂类型集合的差集、交集、并集
全国985院校考研信息汇总整理
20、通道分配任务实现
语音社交系统——完善有声系统产业链
Endnote is associated with word
Communication between client and server based on rsocket protocol
Set structure byte alignment
10. Implementation of related data accumulation task
屏下指纹价格战再起,二线厂商今年有望拿下30%市场?
10、相关数据累积任务实现
Leetcode bracket validity problem
Docker容器实现MySQL主从复制
Matlab exports high-definition pictures without distortion in word compression and PDF conversion
The difference between character array and string
4、主程序和累积中断处理例程实现代码
ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
9、相关数据累积任务定义
MATLAB不覆盖导入EXCEL