The ScopeSET Support and Community Portal
         
View all tags
Tags:    No tags associated yet.
Go Back
Tracker: ECRs Priority: Normal Type: Enhancement
Found: -- Status: Closed Target: 10.1
OS: All Fixed: 10.1.0.0.9 PatchID: --
Description:
For the SimDB XML template, we need access to profile information. i.e. we need to generate a list of defined stereotypes so that the stereotype usages can be referenced via guid. Same for enumerations.

Eventually, this should obviously be implemented by extending the ACD metamodel for profile, for now, I've implemented it with a "QRL append" called from acd_code_gen.qrl (same approach as with OMOS), which creates the following additional NormalClasses:

The current SimDB implementation (templates\uml\qrl\simdb_uml2interface.qrl) only exports STs for UmlPort and UmlClass, but that could be extended easily.

TDL example to retrieve all stereotypes for a Class:

[loop (Instances->MClass as class WHERE hasStereotype([class], "meta_stereotype") AND hasStereotype([class], "meta_UmlClass"))]

all possible values for an enumeration class called "VarType":

    [loop (Instances->MClass as VarType WHERE [VarType.name] == "VarType" AND hasStereotype([VarType], "enum_metaclass"))]
        [loop (VarType->MAttribute as type)]

(there is presently no ACD metamodel construct to tie an enum to a metaclass tagged value type)

Details:
Children (0)
Associations (1)
All (0)

Submitted Type Wiki Link Target Comment
Nothing found to display.

Submitted Type Wiki Link Source Comment
kalin
Oct 28 2009 17:46
depends [ECR-4778] Add profiles to ACD metamodel This ECR should be re-checked