Promoting traits into model-driven development

被引:5
作者
Abdelzad, Vahdat [1 ]
Lethbridge, Timothy C. [1 ]
机构
[1] Univ Ottawa, Sch Elect Engn & Comp Sci, Ottawa, ON, Canada
关键词
Reusability; Traits; Modeling; Umple; UML; INHERITANCE;
D O I
10.1007/s10270-015-0505-x
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Traits, as sets of behaviors, can provide a good mechanism for reusability. However, they are limited in important ways and are not present in widely used programming and modeling languages and hence are not readily available for use by mainstream developers. In this paper, we add UML associations and other modeling concepts to traits and apply them to Java and C++ through model-driven development. We also extend traits with required interfaces so dependencies at the semantics level become part of their usage, rather than simple syntactic capture. All this is accomplished in Umple, a textual modeling language based upon UML that allows adding programming constructs to the model. We applied the work to two case studies. The results show that we can promote traits to the modeling level along with the improvement in flexibility and reusability.
引用
收藏
页码:997 / 1017
页数:21
相关论文
共 52 条
[1]  
Allen Eric, 2005, Sun Microsystems, V139, P140
[2]  
[Anonymous], P 20 IEEE ACM INT C
[3]  
[Anonymous], ACM COMPUT SURV, DOI DOI 10.1145/130844.130856
[4]  
[Anonymous], 2004, JHOTDRAW 7
[5]  
[Anonymous], 2015, UMPL US MAN
[6]  
Arevalo G., 2003, P LMO 03 LANG MOD OB, V3, P47
[7]  
Badreddin O., 2013, SCI, V496, P33
[8]  
Badreddin O, 2013, SCI, P129, DOI [10.1007/978-3-319-00948-3, DOI 10.1007/978-3-319-00948-3_]
[9]  
Badreddin O., 2014, ENHANCED CODE GENERA
[10]  
Badreddin O. B., 2012, CASCON, V12, P73