Technical Meeting

責務記述に基づくクラスの責務割り当て支援

Supporting Class Responsibility Assignment with Responsibility Description

秋山 幹博, 林 晋平, 小林 隆志, 佐伯 元司

Motohiro Akiyama, Shinpei Hayashi, Takashi Kobayashi, Motoshi Saeki

電子情報通信学会技術研究報告, vol. 110, no. 458, pp. 73–78, 沖縄県青年会館, 沖縄, March 2011.

Abstract

オブジェクト指向開発では,設計にあたって各クラスに適切に責務を割り当てることにより,後の開発工程をより円滑に進めることができる.適切な責務割り当ての基準としてGRASPなどの指針があるが,その適用方針は定かではなく,依然として責務割り当ては困難である.これを解決するため,責務割り当てが適切でない箇所を自動的に検出して改善案を作業者に提示することにより,適切な責務割り当ての実現を支援する手法を提案する.提案手法では,責務の主な処理やその対象に関する情報を細分化する責務記述形式と,それに基づく責務割り当ての代替案の提示規則を定義する.代替案の提示規則はGRASPに基づいている.作業者は,提示された代替案に基づいて責務割り当てを洗練し,最終的な責務割り当てを決定する.提案手法を実現するツールを実装し,予備実験を行ったところ,提案手法によって高品質な責務割り当てが実現できる傾向があることを確認した.

Abstract (English)

In object-oriented design, Class Responsibility Assignment (CRA) is important. However, it is not easy to detect where to improve CRA though there are some principles of CRA such as GRASP. In this paper, we propose a technique for supporting achievement of appropriate CRA by detecting inappropriate CRA automatically and suggesting candidates of appropriate CRAs to designers. In the technique, we have defined a responsibility description form which information included in a responsibility can be separately specified. Moreover, recommendation rules of alternatives of CRA based on GRASP are defined. Responsibility descriptions are analyzed with these rules. A designer improves a CRA based on suggested alternatives and achieves a more appropriate CRA. We have implemented a tool supporting the proposed technique and validated its usefulness by preliminary experiments.

BibTeX

@article{akiyama-sigss201103,
    author = {秋山 幹博 and 林 晋平 and 小林 隆志 and 佐伯 元司},
    title = {責務記述に基づくクラスの責務割り当て支援},
    journal = {電子情報通信学会技術研究報告},
    volume = 110,
    number = 458,
    pages = {73--78},
    year = 2011,
}
Type
Technical Meeting
Location
沖縄県青年会館, 沖縄
Presented
March 7, 2011
Volume / Pages
vol. 110, no. 458, pp. 73–78