Developer Resource: Modelling Language

Bar Display View

 

Goal: To display a model in the drawing area in the form of a set of bars, with attributes for objects neatly displayed in the appropriately labelled bar.The model itself can be both a graph or a pool and the objects (modelling instances) are centrally displayed in the Modelling Area. The values of some selected attributes are displayed on both sides on the modelling area, as defined by the developer.

Case: This solution allows the activation/deactivation of the bar display, selecting the orientation of the modelling area (horizontal/vertical), selection of visible attributes (bars) and much more.

 

Documentation:

Bar Display View.pdf

Sample Model:

LearnPAd Bar Display Sample Model.adl

Downloads

Script Files

ADOxx Realisation Approach

Modelling Language Implementation

  1. Implement the concrete modelling classes of the domain
  2. Define modeltypes and assign classes
  3. Udpate the graphical representation of the drawing area (using model type GraphRep) and of the classes defined

Mechanisms and Algorithms Implementation

  1. Implement AdoScripts to toggle the Bar Display view off and on
  2. Implement AdoScripts firstly for the drawing of bars in the drawing area and secondly for the reading of attribute values and the placement of these values in the appropriate bars

Implementation Result

Applied ADOxx Functionality

ADOxx Constructs for Modelling Language Implementation

ADOxx Constructs for Mechanisms & Algorithms Implementation

Average (0 Votes)
The average rating is 0.0 stars out of 5.
No comments yet. Be the first.