一种基于意图的设计模式排序与优化方法  

A Design Pattern Ranking and Optimization Method Based on Intent

在线阅读下载全文

作  者:关慧 历子谦 吕颖 GUAN Hui;LI Zi-qian;LYU Ying(School of Computer Science and Technology,Shenyang University of Chemical Technology,Shenyang 110028,China;Liaoning Province Key Laboratory of Intelligent Technology of Chemical Process Industry,Shenyang 110142,China)

机构地区:[1]沈阳化工大学计算机科学与技术学院,辽宁沈阳110028 [2]辽宁省化工过程工业智能化技术重点实验室,辽宁沈阳110142

出  处:《计算机技术与发展》2021年第8期19-25,共7页Computer Technology and Development

基  金:辽宁省自然科学基金(201602583)。

摘  要:设计模式是对于特定软件设计问题的经过验证的解决方案,通常用来获取为解决软件设计问题所需的软件知识,但选出合适的设计模式却并非一件容易的事。设计模式意图是理解设计模式的最短路径,因此通过解析设计模式意图对设计模式排序,更利于用户获得所需设计模式。文中提出了一种基于意图的设计模式排序方法,以方便设计模式的选择,定义了相关相似度的计算方法并在文中给出相应的证明,而后通过遗传算法对所定义的参数进行了调整和优化,最后用软件实际开发中实际问题数据集和设计模式集合,在提出的方法上进行了验证和分析。实验结果表明,该方法相比其他方法在匹配率上有一定提高,且排序后使得更多正确的结果出现在靠前的位置。Design patterns are proven solutions to specific software design problems and often used to acquire the software knowledge needed to solve software design problems,but choosing the appropriate design patterns is not an easy task.Design pattern intent is the shortest path to understand design patterns,so sorting design patterns by analyzing design pattern intent is more beneficial for users to obtain the required design patterns.We propose an intent-based ranking method to facilitate the choice of design patterns,define the relevant similarity calculation method and give the corresponding proof.Then,the parameters defined are adjusted and optimized by genetic algorithm.Finally,the proposed method is verified and analyzed by using the data set of practical problems and design patterns in the actual software development.The experiment shows that compared with other methods,the matching rate of the proposed method is improved to a certain extent,and more correct results appear in the first place after sorting.

关 键 词:WORDNET Stanford Parser 遗传算法 设计模式 排序 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象