|
|
Create Change Structural Feature Event |
This helper creates / updates Change Structural Feature Events for the currently selected attributes / value properties. SysML has the concept of an Accept Change Structural Feature Event Action – this is a form of Accept Event Action that detects a change in an attribute value. Rhapsody achieves this with a special kind of event – a Change Structural Feature Event.
|
Applicable To |
Attribute |
|
Menu
Entry |
Power
Pack Create Structural Feature Event(s) |
|
Demonstration |
Multiple attributes may be selected – the helper creates / updates Change Structural Feature Events for any selected attribute.
· The new event is created in the same package as the attribute.
· The new event is given a structuralFeature tag with the attribute as its value.
· The name of the event is ‘ch’ followed by the name of the attribute, but this prefix may be changed using the following property:
RhapsodyPowerPack.CreateStructuralFeatureEvent.NamePrefix
You will find it on the Architecture Tools tab of the Power pack property perspective.
The event is given two arguments, both of the same type as the attribute:
· oldValue
· newValue
Lastly the event is added as an event reception to the attribute’s owning classifier.
For example:
