create structure and semantics description as derived attribute at the same place as description, and generate in it explanation of each structural element
For instance:
- if a class "AbstractElement" has an attribute "derivedName", that is string and derived as null, it would add to the generated text a sentence: "An AbstractElement has a derivedName, which is defined to be null."
- if in the same model, a class "CatalogElement" has an annotation redefining derivedName to self.name, then it would add to the gernerated test a sentence: "A CatalogElement has a derivedName, since its generalization has a derived name, and a CatalogElement redefines its derivedName as being the same as name"
We need to think, to not make it too long. And maybe create short and long versions in the features themselve, and then make the text configurable.
Edited by Philipp W. Kutter