.ClaRa.Basics.Icons.ComplexityLevel

Information

Complexity Levels of a Model

The ClaRa library is intended to contain models at different levels of complexity. Ideally, different complexity levels should be replaceable and hence extended from one base class. We suggest to use a scale containing at most 6 complexity states:

   ....up to....

The idea of a model should be clearly described in the model information. Additionally, the complexity of a model should be visible already from its icon. For this the complexity level (0..5) is displayed as a number in the lower center of the icon as follows:


model MyNewModel "A new way to solve this problem"


extends ClaRa.Basics.Icons.MyModel;

extends ClaRa.Basics.Icons.ComplexityLevel(complexity="x");

        ....


end MyNewModel;

 

Here "x" runs from 0..5.


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos