Developer Resource: Mechanisms and Algorithms
Track Changes "Changed Name"
Goal: Demonstrate how events in ADOxx can be used to catch the change of content of objects and trigger respective AdoScripts.
Case: In addition to commenting, tracking the movement, changes in the model content are captured and result in a highlight of the change in the modelling area.
Documentation:
Downloads


Script Files
ADOxx Realisation Approach
Modelling Language Implementation
Step 1 and 2 can be skipped if your ADOxx implementation is available and should be used.
- Implement the concrete modelling classes of the domain
- Define modeltype and assign classes
- Add an attribute that keeps track of changes (can be done on the root element, to enable the functionality for all classes in the implementation)
- Add an attribute that keeps track of the "old" name value to show in the graphical representation
- Udpate the graphical representation to evaluate the attribute in 3) and 4) and change the graphical appearance accordingly.
Mechanisms and Algorithms Implementation
- Implement AdoScripts to update the change flag attribute in the AfterEditAttributeValue event.
Implementation Result
Applied ADOxx Functionality
ADOxx Constructs for Modelling Language Implementation
ADOxx Constructs for Mechanisms & Algorithms Implementation