Developer Resource: Mechanisms and Algorithms
Track Changes "Comments"
Goal: Demonstrate how HOTSPOTS and AdoScript triggers can be used to implement comment functionality, including basic positioning mechanisms of comments in the modelling area.
Case: Enable commenting per instance through user interaction. For this version, the focus lies on the interaction and presentation of comments on the UI. Comments can be added and also deleted by the modeller. Revision safety mechanisms are currently not considered.
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
- Implement a concrete modelling class "Comment Box"
- Add PROGRAMCALL attribute for classes that should be commentable
- Update graphical representation to add HOTSPOTs for adding and deleting comments
Mechanisms and Algorithms Implementation
- Implement AdoScripts for add and delete action
- Assign AdoScript to PROGRAMCALL
Implementation Result
Applied ADOxx Functionality
ADOxx Constructs for Modelling Language Implementation
- Implementation of concrete modelling classes in a hierarchy
- Implementation of HOTSPOTS in the notation using GraphRep
- Trigger AdoScript using PROGRAMCALLs from HOTSPOTS
ADOxx Constructs for Mechanisms & Algorithms Implementation