Summary: | 碩士 === 國立成功大學 === 電腦與通信工程研究所 === 95 === During software maintenance, software developers are responsible to change the software for fulfilling the change of user requirement and for fixing the design flaw. Software refactoring provides developers a behavior preserving way to enhance software structure. With proper refactoring, the refactored software would be more extendable for further change. However, during refactoring, the overall effect of refactoring on software structure is often unclear for the developer. The lack of information about the effect of refactoring makes the process of applying refactoring inefficient. In this work, a mechanism that provides developers to preview the refactoring effect is presented. The refactoring effect is represented as a set of software metrics that can reflect the structure of software. To assess the effect of refactoring, the structure changes made by refactoring is decomposed to a series of atomic changes. The effect of refactoring on software metrics is then induced from these atomic changes. A tool: Refactoring Previewer that helps developer preview refactoring effect is implemented. The metrics change information provides by Refactoring Previewer can help developer understand the refactoring impact on software structure and make refactoring decision in more efficient way.
|