当前位置:网站首页>包图画法注意规范
包图画法注意规范
2022-07-02 06:27:00 【任亚兵】
关于包图的讲解内容
1.要明确包与包之间的关系
有两种关系:
而其中的依赖:
use :使用关系,是一种默认的依赖关系,说明客户包(发出者)中的元素以某种方式使用提供者包(箭头指向的包)的公共元素,也就是说客户包依赖于提供者包。
import:引用关系,最普遍的包依赖类型,说明提供者包(箭头指向的包)的命名空间(包本身代表命名空间)将被添加到客户包(发出者)的命名空间中,客户包中的元素也能够访问提供者包的所有公共元素。
access:访问关系,只想使用提供者包中的元素,而不想将其命名空间合并则应使用该关系。
trace:追溯关系,想表示一个包到另一个包的历史发展,则需要使用《trace》关系来表示。
2.包中的元素:
类、接口、构件、节点、协作、用例、其他包或者图
3.绘制包图原则:
每个包都必须有一个唯一的包名
包图中拥有的元素不得超出规范中的六种元素
最小化包间的依赖,最小化每个包中的 public , protected 元素个数,最大化每个包中 private 元素个数
包间关系不能出现循环依赖的情况
包中可以嵌套子包
包图需体现出包间的层级关系,一个层级的包放到一张图。一般情况下,只绘制第一层级的包关系即可
4.实例:
边栏推荐
- open3d学习笔记三【采样与体素化】
- The hystrix dashboard reported an error hystrix Stream is not in the allowed list of proxy host names solution
- 【Mixup】《Mixup:Beyond Empirical Risk Minimization》
- conda常用命令
- Deep learning classification Optimization Practice
- 【学习笔记】Matlab自编图像卷积函数
- [binocular vision] binocular correction
- label propagation 标签传播
- 【Hide-and-Seek】《Hide-and-Seek: A Data Augmentation Technique for Weakly-Supervised Localization xxx》
- Correction binoculaire
猜你喜欢
【AutoAugment】《AutoAugment:Learning Augmentation Policies from Data》
【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》
【Paper Reading】
论文写作tip2
open3d学习笔记三【采样与体素化】
针对语义分割的真实世界的对抗样本攻击
ModuleNotFoundError: No module named ‘pytest‘
Semi supervised mixpatch
Execution of procedures
【MagNet】《Progressive Semantic Segmentation》
随机推荐
Summary of open3d environment errors
Nacos service registration in the interface
Handwritten call, apply, bind
ABM thesis translation
Eklavya -- infer the parameters of functions in binary files using neural network
open3d学习笔记五【RGBD融合】
【MagNet】《Progressive Semantic Segmentation》
Open3d learning notes 1 [first glimpse, file reading]
Replace self attention with MLP
【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》
PPT的技巧
【TCDCN】《Facial landmark detection by deep multi-task learning》
TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
【多模态】CLIP模型
【学习笔记】反向误差传播之数值微分
[learning notes] matlab self compiled image convolution function
程序的执行
【Wing Loss】《Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks》
【Mixed Pooling】《Mixed Pooling for Convolutional Neural Networks》
Implementation of yolov5 single image detection based on pytorch