# Note: [k.ymoto@nifty.com:2008.07.31]
[tosiki.iga@nifty.ne.jp:2008.07.31]
[kashihara@gmail.com:2008.08.03「Cが」->「C が」。]
This metric measures the number of instantiations of
other classes within the given class. This type of
coupling is not caused by inheritance or the object
oriented paradigm. Generally speaking, any abstract
data type with other abstract data types as members
has data abstraction coupling; therefore, if a class
has a local variable that is an instantiation
(object) of another class, there is data abstraction
coupling. The higher the DAC, the more complex the
data structure (classes) of the system.=このメトリック
は、指定されたクラスに含まれる他のクラスのインスタンスの数を
測定します。このタイプの結合は、継承またはオブジェクト指向パ
ラダイムによっては引き起こされません。一般的にいって、メン
バーとして他の抽象データ型を持つ抽象データ型にはデータ抽象化
結合があります; したがって、クラスに別のクラスのインスタンス
(オブジェクト) であるローカル変数がある場合、データ抽象化結
合があります。DAC がより高くなると、システムのデータ構造 (ク
ラス) もより複雑になります。
# Note: [k.ymoto@nifty.com:2008.07.31 maintenenceは
maintenanceの意か?] [tosiki.iga@nifty.ne.jp:2008.07.31]
[kashihara@gmail.com:2008.08.03 修正エントリー追加。]
The number of other classes a given class relies
on. Also the square of this has been shown to
indicate the amount of maintenence required in
functional programs (on a file basis) at least.=指定
されたクラスが依存している他のクラスの数。機能プログラム
(ファイル単位) で少なくとも必要となるメンテナンスの合計を示
すために、この数の平方根も表示されます。
# Note: [k.ymoto@nifty.com:2008.07.31 (plus one)の意味が理
解できず。] [tosiki.iga@nifty.ne.jp:2008.07.31 &が含まれま
すが、これはニモーニックではないと考えます。]
[kashihara@gmail.com:2008.08.03 plus one は McCabe's
cyclomatic complexity を元にした算出方法 (PMD など他のメトリ
クス系も同じ) の一部。訳と位置を少し修正。]
Checks cyclomatic complexity against a specified
limit. The complexity is measured by the number of
if, while, do, for, ?:, catch, switch, case
statements, and operators && and || (plus one) in
the body of a constructor, method, static
initializer, or instance initializer. It is a
measure of the minimum number of possible paths
through the source and therefore the number of
required tests. Generally 1-4 is considered good,
5-7 ok, 8-10 consider re-factoring, and 11+ re-
factor now!=指定した制限に対する循環的複雑度をチェックしま
す。複雑度は、コンストラクター、メソッド、static イニシャラ
イザー、またはインスタンス・イニシャライザー本文内の、 if、
while、do、for、?:、catch、switch、case ステートメントおよ
び演算子 && と || の数 (+ 1) によって測定されます。ソースを
通して考えられるパスの最小数、すなわち必要なテストの数を測定
したものです。一般的に 1-4 望ましい、5-7 OK、8-10 リファクタ
リングを検討、11+ 今すぐリファクタリング!
ymotoさん、翻訳をお願いします。