为实现从UML(unified modeling language)模型中自动识别出相应的设计模式,提出一种基于改进的模板匹配的设计模式识别方法。针对传统最短距离模板匹配算法存在的问题,给出一种改进的算法,提出基于该算法的设计模式自动识别方法。给出一个识别实例,实验结果表明,该方法可以实现设计模式的自动识别。
To achieve the automatic detection of corresponding design patterns from UML(unified modeling language)model,a design pattern automatic detection method based on an improved template matching algorithm was proposed.Aiming at the problem existing in the traditional shortest distance template matching algorithm,an improved algorithm was given,and then a design pattern automatic detection method was proposed based on this algorithm.A detection instance was given.Experimental results show that this method can realize automatic detection for design patterns.