Figure R.06 - The EntitySpecification – Entity Pattern : Class diagram
Created: |
3/28/2022 3:51:09 PM |
Modified: |
6/6/2022 12:32:16 PM |
Project: |
|
Author: |
broth |
Version: |
22.0 |
Advanced: |
|
ID: |
{7FC0814E-C49D-4d3e-B52E-69B592EE2999} |
The EntitySpecification – Entity pattern, shown in Figure below, enables all Entities to be abstracted such that their shared attributes are captured in the EntitySpecification via inheritance from RootEntity and their shared associations inherited from those that Entity has with other entities, such as EntityIdentification. This enables each Entity to define its own distinguishing attributes in addition to the common attributes and associations defined by EntitySpecification.<br/><i>Note that in the figure the association between EntitySpecification and Entity is implied and not a UML association. This was done so that the association between EntitySpecification and Entity is not inherited by all their subclasses. This would cause a problem, because any instance of an EntitySpecification could be associated to any instance of an Entity. For example, an instance of ProductSpecification could be associated to an instance of Service. The 0,1 association multiplicity on the association means that not every entity has to have an associated EntitySpecification. For example, an instance of a discovered Resource may not have a known instance of ResourceSpecification associated to it.</i><br/>Also shown in the figure are an EntitySpecificationType and an EntitySpecificationTypeRelationship. This provides a consistence way to define relationships among entities that inherit from EntitySpecification. <br/>