|Anonymous | Login | Signup for a new account||2023-05-31 10:54 UTC|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details [ Jump to Notes ]||[ Issue History ] [ Print ]|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000523||Taste||[All Projects] OpenGeode||public||2016-09-02 07:14||2023-05-14 16:50|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
Make possible to disable SDL elements
Sometimes it is useful to comment out parts in source code, i.e. do not compile them wile keeping them in the source for possible future use or other reasons.
It would be nice to have this possibility for SDL elements as well, with the possibility to select one or more elements before "disabling" them.
BTW this is needed also at system level (taste-IV), to disable functions and ports, while keeping them in the model.
|Tags||No tags attached.|
|Attached Files|| SDL-transition option.gif [^] (10,447 bytes) 2016-09-02 09:02
How do you see it in practice?
SDL has the ALTERNATIVE construct, that is similar to DECISIONS - syntax wise, but used to drive the generated code (equivalent to #ifdef, to disable branches). Is that what you have in mind?
Single elements like TASKS and DECISIONs can be commented (by surrounding the content with quotes) - in which case no code is generated for them. That does not work for OUTPUTs.
Not sure if ALTERNATIVE construct can work:
Another approach would be to extend the parser and the generator and use some special markup comment that opengeode can recognize, to show the elements someout (e.g. grayed out), although they won't be effectively get compiled.
I've uploaded an image to show how alternatives look like in SDL - it's similar to DECISIONs, except that the unselected branches would not be generated in the code.
The good thing is that you can use the same condition at different places of your model and have a single place where you define the value of the constant, so that you can enable/disable branches everywhere at the same time.
Drawback: It pollutes a bit the graphical model and it takes a bit more time to do than just right-click->Disable
There are two other options:
I will evaluate the impact of all these options, let me know if you have a strong preference.
Done, the alternative symbol is now supported in the editor and code generator.
|2016-09-02 07:firstname.lastname@example.org||New Issue|
new => assigned
|2016-09-02 07:email@example.com||Assigned To||
|2016-09-02 07:49||maxime||Note Added: 0002672|
|2016-09-02 08:firstname.lastname@example.org||Note Added: 0002674|
|2016-09-02 09:02||maxime||File Added: SDL-transition option.gif|
|2016-09-02 09:14||maxime||Note Added: 0002675|
|2022-12-06 09:35||maxime||Note Added: 0003820|
assigned => resolved
open => fixed
resolved => closed
|Copyright © 2000 - 2011 MantisBT Group|