Using RoleOf relationship in design pattern instantiation

Chengwan He, K. He, Fei He, Feng Yao, Jin Liu
{"title":"Using RoleOf relationship in design pattern instantiation","authors":"Chengwan He, K. He, Fei He, Feng Yao, Jin Liu","doi":"10.1109/ITCC.2005.288","DOIUrl":null,"url":null,"abstract":"The scattering of pattern logic (the attributes and methods of pattern role) is the most typical problem on design pattern instantiation, that is, pattern logic scatters across multiple business classes, which causes problems, such as, debasing the reusability of pattern logic, losing the instantiation information of pattern (traceability and overlapping problem) etc. To resolve these problems in design level, an approach to design pattern instantiation based on RoleOf relationship is proposed. It treats role as the independent modeling element and introduces RoleOf relationship between business class and role, which makes the business logic and the pattern logic completely separated, thus improves its reusability. Through the extension of UML, the meta-model and semantics of RoleOf relationship, and stereotypes and tagged values used for identify pattern information are provided, it resolves the traceability and overlapping problem. Finally, the implementation method of RoleOf relationship is discussed through an example.","PeriodicalId":326887,"journal":{"name":"International Conference on Information Technology: Coding and Computing (ITCC'05) - Volume II","volume":"5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2005-04-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Information Technology: Coding and Computing (ITCC'05) - Volume II","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ITCC.2005.288","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

The scattering of pattern logic (the attributes and methods of pattern role) is the most typical problem on design pattern instantiation, that is, pattern logic scatters across multiple business classes, which causes problems, such as, debasing the reusability of pattern logic, losing the instantiation information of pattern (traceability and overlapping problem) etc. To resolve these problems in design level, an approach to design pattern instantiation based on RoleOf relationship is proposed. It treats role as the independent modeling element and introduces RoleOf relationship between business class and role, which makes the business logic and the pattern logic completely separated, thus improves its reusability. Through the extension of UML, the meta-model and semantics of RoleOf relationship, and stereotypes and tagged values used for identify pattern information are provided, it resolves the traceability and overlapping problem. Finally, the implementation method of RoleOf relationship is discussed through an example.
在设计模式实例化中使用RoleOf关系
模式逻辑(模式角色的属性和方法)的分散是设计模式实例化中最典型的问题,即模式逻辑在多个业务类之间分散,从而导致模式逻辑的可重用性降低、模式实例化信息丢失(可追溯性和重叠问题)等问题。为了在设计层面解决这些问题,提出了一种基于RoleOf关系的设计模式实例化方法。将角色作为独立的建模元素,在业务类和角色之间引入RoleOf关系,使业务逻辑和模式逻辑完全分离,提高了可重用性。通过UML的扩展,提供了RoleOf关系的元模型和语义,以及用于标识模式信息的原型和标记值,解决了可追溯性和重叠问题。最后,通过实例讨论了RoleOf关系的实现方法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信