デザインパターンに出てくる用語集を考えます。a から cまで

デザインパターンを調べ始めた経緯はこちらです。

他のパターンはこちらです。

今回はオブジェクト指向のための再利用可能なデザインパターンを読み解くために必要な用語集を作成します。

主にこちらのサイトの用語を翻訳していきます。

説明に必要な単語であればこのサイトに載っていなくても並べることがあります。

※かなり紆余曲折することや誤った解釈をする可能性があります。その際は是非コメントをお待ちしています。よろしくお願いします。

※まずはアルファベット順で並べますが今後のアップデートであいうえお順に整理しなおす予定です。

用語 Glossary

abstract class 抽象クラス

A class whose primary purpose is to define an interface. An abstract class defers some or all of its implementation to subclasses. An abstract class cannot be instantiated.

インターフェイスを定義することを主な目的としたクラスです。抽象クラスは、その実装の一部または全部をサブクラスに委ねます。抽象クラスはインスタンス化できません。

abstract coupling 抽象結合

Given a class A that maintains a reference to an abstract class B, class A is said to be abstractly coupled to B. We call this abstract coupling because A refers to a type of object, not a concrete object.

クラスAが抽象クラスBへの参照を保持している場合、クラスAはBと抽象的に結合しているといいます。

abstract operation 抽象操作

An operation that declares a signature but doesn't implement it. In C++, an abstract operation corresponds to a pure virtual member function.

シグネチャを宣言しているが、それを実装していない操作。C++では、抽象操作は純粋仮想メンバ関数に相当する。??要調査

acquaintance relationship 知人関係

A class that refers to another class has an acquaintance with that class.

別のクラスを参照しているクラスは、その別のクラスと知り合いの関係にあります。

aggregate object 集約オブジェクト

An object that's composed of subobjects. The subobjects are called the aggregate's parts, and the aggregate is responsible for them.

サブオブジェクトで構成されたオブジェクト。サブオブジェクトは「aggregate's parts」と呼ばれ、アグリゲートはそのパーツに対して責任を負う。

aggregation relationship 集約関係

The relationship of an aggregate object to its parts. A class defines this relationship for its instances (e.g., aggregate objects). 

集約オブジェクトとそのパーツの関係。クラスは、そのインスタンス(集約オブジェクトなど)に対してこの関係を定義します。

black-box reuse ブラックボックス再利用

A style of reuse based on object composition. Composed objects reveal no internal details to each other and are thus analogous to "black boxes."

オブジェクトの合成に基づく再利用のスタイル。合成されたオブジェクトは、お互いに内部の詳細を明らかにしないため、"ブラックボックス "に似ている。

class クラス

A class defines an object's interface and implementation. It specifies the object's internal representation and defines the operations the object can perform. 

クラスにはオブジェクトのインタフェースと実装を定義します。そのオブジェクトの内部を象徴的に表す様に指定をし、それとともに実行できる操作(部分)を定義します。

独自の理解としては、
クラスはオブジェクトのインタフェースと実装(処理・仕掛け・仕組み)を用意して、そのオブジェクトで実装した内容を外部から操作出来る部分も用意しますよーということだと解釈しました。

class diagram クラス図

A diagram that depicts classes, their internal structure and operations, and the static relationships between them. 

クラス、その内部構造と操作、およびクラス間の静的な関係を描いた図。

class operation クラス操作

An operation targeted to a class and not to an individual object. In C++, class operations are are called static member functions. 

個々のオブジェクトではなくクラスを対象とした操作。C++では、クラス操作は静的メンバ関数と呼ばれる。

concrete class 具象クラス

A class having no abstract operations. It can be instantiated.

抽象的な操作を持たないクラス。インスタンス化することができます。

constructor コンストラクタ

In C++, an operation that is automatically invoked to initialize new instances. couplingThe degree to which software components depend on each other.

C++で、新しいインスタンスを初期化するために自動的に起動される操作。 カップリングソフトウェアのコンポーネントが互いに依存する度合い。

interface インタフェース

The set of all signatures defined by an object's operations. The interface describes the set of requests to which an object can respond.

オブジェクトの操作によって定義されるすべてのシグネチャの集合。インターフェースは、オブジェクトが応答できる要求のセットを記述します。

独自の理解としては、情報を交換するための共有境界・やり取りする部分。

signature シグネチャー

An operation's signature defines its name, parameters, and return value.

操作のシグネチャは、その名前、パラメータ、および戻り値を定義します。

単語の意味としては、署名や(処方せんに書く)用法注意とあります。感覚としてはとある物体に記号つまり文字でとある物体を示す名称やとある物体の用法を記することだと思います。

そうなると「とある操作」つまり「とある処理」に対してその仕掛けの名前やパラメータ(必要な値。薬で言うところの一日3錠飲む的な)・戻り値(仕掛けがとある処理をした後に返す値のこと。薬で言うところの熱が引く的な「効果」に近い)のことと理解しました。


今回はaからcまでです。ところどころに出てくるインタフェースとシグネチャーは先に翻訳しました。

このペースだと遅いので次回はも少し進められたらと思います。

ここまでお読みいただきありがとうございます。




この記事が参加している募集

#私のコーヒー時間

27,400件

この記事が気に入ったらサポートをしてみませんか?