From d4afaea7ed5100c9b305b1cee4e7d67e6ccc728c Mon Sep 17 00:00:00 2001 From: Kobkaew Opasjumruskit Date: Tue, 16 Jan 2024 19:52:57 +0100 Subject: [PATCH] Update documentation/modules/ROOT/pages/modeling-guidelines.adoc Co-authored-by: Andreas Textor --- documentation/modules/ROOT/pages/modeling-guidelines.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/modules/ROOT/pages/modeling-guidelines.adoc b/documentation/modules/ROOT/pages/modeling-guidelines.adoc index e90bfc0..f553425 100644 --- a/documentation/modules/ROOT/pages/modeling-guidelines.adoc +++ b/documentation/modules/ROOT/pages/modeling-guidelines.adoc @@ -566,7 +566,7 @@ include::example$extending-entity-declaration-inheritance.ttl[tags=extending-ent [[declaring-abstract-entities]] ==== Declaring Abstract Entities -In contrast to Entities, Abstract Entities cannot directly be instantiated. A Characteristic class may have a type `samm:entity` or `samm:AbstractEntity`. But for a Characteristic instance, it cannot have a type `samm:AbstractEntity`. If there is an instance created from a Characteristic that uses an Abstract Entity as its type, this Characteristic instance's dataType must be a sub-Entity of the Abstract Entity. +In contrast to Entities, Abstract Entities cannot directly be instantiated. A Characteristic class may have a type `samm:entity` or `samm:AbstractEntity`. But a Characteristic instance cannot have a type `samm:AbstractEntity`. If there is an instance created from a Characteristic that uses an Abstract Entity as its type, this Characteristic instance's dataType must be a sub-Entity of the Abstract Entity. The main use case for Abstract Entities is to share Properties across multiple Entities. This can be achieved through inheritance: Abstract Entities can extend other Entities and Abstract Entities and can themselves be extended in a manner not dissimilar to how abstract classes are used in many programming languages. In the following example, both `SteeringWheel` and `Seat` _extend_ the Abstract Entity