概念

概念は、単独で存在することも 1 つ以上のエンティティーやイベントに属すこともできるオブジェクトのタイプです。ビジネス・モデルで概念を定義して、さまざまなタイプの実世界オブジェクトをビジネス・ロジックで表します。通常は、より複雑なオブジェクト・タイプの中で再使用することが目的です。

以下の構文を使用して、概念を定義します。

<a concept> is a concept [with <attribute>].

概念は属性を持つことができます。例えば、address は、street、town、postal code、および country を含む概念です。

an address is a concept with a street, a town, a postal code and a country.

その後、エンティティー・タイプおよびイベント・タイプの定義の中でこの概念を使用することができます。例:

a customer is a business entity identified by an id.
a customer has an address, a name and a favorite shop.

an employee is a business entity identified by an id.
an employee has an address, a name and a job role.

概念は、別の概念を基にすることができ、その別の概念から属性を継承します。その結果、継承側の概念のインスタンスであるオブジェクトも、この概念が属性を継承した元のタイプのインスタンスになります。以下の構文を使用して、既存の概念を基に概念を定義できます。

<a concept> is <a concept>.

以下の例では、person という概念から継承される customer と employee を定義します。

a person is a concept with an address and a name.

a customer is a person with a favorite shop.

an employee is a person with a job role.