論文

査読有り
2002年3月15日

リファクタリングを自動化するための基本機構の提案

情報処理学会論文誌プログラミング(PRO)
  • 秦野 克彦
  • ,
  • 乃村 能成
  • ,
  • 谷口 秀夫
  • ,
  • 牛島 和夫

43
3
開始ページ
79
終了ページ
79
記述言語
日本語
掲載種別
出版者・発行元
一般社団法人情報処理学会

ソフトウェアを要求機能に合わせて改版することを繰り返し行うと冗長な箇所や複雑な箇所が現れてしまう.こうしたプログラム構造の品質低下は将来の機能拡張と保守作業を困難にする.そこで,プログラム構造を見直し,品質を向上させるためにはリファクタリングが有効である.リファクタリングとは,ソフトウェアの提供する機能を変更することなく内部構造を変化させることである.リファクタリングにより,機能拡張や保守作業が円滑になると期待できる.ここで,リファクタリングを行うためにはプログラムの品質低下を招いている箇所を見つけ出す必要がある.さらに,その箇所を取り除ける適切なリファクタリング手法を選択しなければならない.従来,こうした判断は難しく,適切なリファクタリング手法を選ぶためには,その目的や効果に関する知識や経験を必要とした.そこで,本発表ではリファクタリングを行う際に,ソフトウェアメトリクスを用いる機構を提案する.具体的にはプログラム構造の品質の度合いをソフトウェアメトリクスを用いて数値化する.また,各種ソフトウェアメトリクスにより,数値化された品質の度合いに適したリファクタリング手法の選択を可能にする.これにより,作業者の経験や知識に比較的かかわりなくプログラムを改善していくことができる.Software flexibility and expandablity reflect program architecture. For example, it is difficult to add functions and to maintenance programs because of its complexity. We need to improve software carefully if we want to keep it high quality. We can use a technique called "Refactoring". "Refactoring" is to reorganize a program without changing its functions. Refactorings are used to make other program changes easier for future modification and maintenance. We have to find out where we apply refactoring and which refactoring we should use. This presentation proposes a mechanism to support automated refactoring process. Our approach to indentifying the refactoring candidate is based on software metrics. This mechanism help us to choose an appropriate refactoring method when we improve programs without experience and knowledge.

リンク情報
CiNii Articles
http://ci.nii.ac.jp/naid/110002726322
CiNii Books
http://ci.nii.ac.jp/ncid/AA11464814
URL
http://id.nii.ac.jp/1001/00016804/
ID情報
  • ISSN : 1882-7802
  • CiNii Articles ID : 110002726322
  • CiNii Books ID : AA11464814

エクスポート
BibTeX RIS