Open Access

表1

UML类模型的关系汇总

UML类图的关系 关系说明 代码表现 箭头及指向
泛化(generalization) 一般与特殊,子类特化父类的特征和行为 三角箭头实线,指向父类
实现(realization) 类与接口,类是接口特征和行为的实现 三角箭头虚线,指向接口
关联(association) 拥有,使一个类知道另一个类的属性和方法 成员变量 普通箭头实线,指向被拥有者
聚合(aggregation) 整体与部分,部分可以单独存在 成员变量 空心菱形实线,指向整体
组合(composition) 整体与部分,部分不可以单独存在 成员变量 实心菱形实线,指向整体
依赖(dependency) 使用,一个类的实现需要另一个类的协助 局部变量 普通箭头虚线,指向被使用者

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.