当前位置:网站首页>包图画法注意规范
包图画法注意规范
2022-07-02 06:27:00 【任亚兵】
关于包图的讲解内容
1.要明确包与包之间的关系
有两种关系:
而其中的依赖:
use :使用关系,是一种默认的依赖关系,说明客户包(发出者)中的元素以某种方式使用提供者包(箭头指向的包)的公共元素,也就是说客户包依赖于提供者包。
import:引用关系,最普遍的包依赖类型,说明提供者包(箭头指向的包)的命名空间(包本身代表命名空间)将被添加到客户包(发出者)的命名空间中,客户包中的元素也能够访问提供者包的所有公共元素。
access:访问关系,只想使用提供者包中的元素,而不想将其命名空间合并则应使用该关系。
trace:追溯关系,想表示一个包到另一个包的历史发展,则需要使用《trace》关系来表示。
2.包中的元素:
类、接口、构件、节点、协作、用例、其他包或者图
3.绘制包图原则:
每个包都必须有一个唯一的包名
包图中拥有的元素不得超出规范中的六种元素
最小化包间的依赖,最小化每个包中的 public , protected 元素个数,最大化每个包中 private 元素个数
包间关系不能出现循环依赖的情况
包中可以嵌套子包
包图需体现出包间的层级关系,一个层级的包放到一张图。一般情况下,只绘制第一层级的包关系即可
4.实例:

边栏推荐
- 【Batch】learning notes
- 【学习笔记】反向误差传播之数值微分
- 【学习笔记】Matlab自编图像卷积函数
- Feature Engineering: summary of common feature transformation methods
- 论文tips
- 【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
- Gensim如何冻结某些词向量进行增量训练
- Summary of open3d environment errors
- 【Paper Reading】
- 【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》
猜你喜欢

Common machine learning related evaluation indicators

【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》
![[CVPR‘22 Oral2] TAN: Temporal Alignment Networks for Long-term Video](/img/bc/c54f1f12867dc22592cadd5a43df60.png)
[CVPR‘22 Oral2] TAN: Temporal Alignment Networks for Long-term Video

ModuleNotFoundError: No module named ‘pytest‘
![[mixup] mixup: Beyond Imperial Risk Minimization](/img/14/8d6a76b79a2317fa619e6b7bf87f88.png)
[mixup] mixup: Beyond Imperial Risk Minimization

【双目视觉】双目矫正

Embedding malware into neural networks

利用超球嵌入来增强对抗训练

EKLAVYA -- 利用神经网络推断二进制文件中函数的参数
![[in depth learning series (8)]: principles of transform and actual combat](/img/2e/89920de2273b6f1bc3b21a19c2ecbe.png)
[in depth learning series (8)]: principles of transform and actual combat
随机推荐
mmdetection训练自己的数据集--CVAT标注文件导出coco格式及相关操作
open3d环境错误汇总
Pointnet understanding (step 4 of pointnet Implementation)
【Batch】learning notes
EKLAVYA -- 利用神经网络推断二进制文件中函数的参数
conda常用命令
Thesis writing tip2
【DIoU】《Distance-IoU Loss:Faster and Better Learning for Bounding Box Regression》
【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
超时停靠视频生成
[binocular vision] binocular correction
The difference and understanding between generative model and discriminant model
Win10 solves the problem that Internet Explorer cannot be installed
ModuleNotFoundError: No module named ‘pytest‘
【Random Erasing】《Random Erasing Data Augmentation》
半监督之mixmatch
Thesis tips
Implementation of yolov5 single image detection based on pytorch
【BiSeNet】《BiSeNet:Bilateral Segmentation Network for Real-time Semantic Segmentation》
Replace self attention with MLP