Changes between Version 3 and Version 4 of LanguageChanges


Ignore:
Timestamp:
Jan 12, 2007, 10:21:13 AM (16 years ago)
Author:
Rafael de Pelegrini Soares
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LanguageChanges

    v3 v4  
    8181||Who || Opinion || Why ||
    8282||Rafael || '''agreed''' || proposed the change ||
     83
     84
     85== Model Attributes ==
     86
     87Currently only '''types''' have attributes, examples:
     88{{{
     89#!mso
     90positive as Real (Brief = "Positive General Constant", Default=1.0, Lower=-1e-6);
     91negative as Real (Brief = "Negative General Constant", Default=-1.0, Upper=0.0);
     92fraction as positive (Brief = "Fraction" , Default=0.5, Upper=1.00001);
     93}}}
     94
     95In the above type declarations, '''Brief''', '''Lower''', etc are attributes.
     96We are planning to add attributes also for '''Model'''s and we need to define a syntax for their declaration.
     97
     98=== Option 1 ===
     99
     100Something similar to the types declaration:
     101{{{
     102#!mso
     103Model MyTankModel (Icon="Tank", IconSize="normal", Brief="Model for a special kind of tank",
     104    Documentation="The model documentation. This should be more detailed than Brief,
     105    possibly spanning in multiple lines.
     106    It also should be good a have some wiki formating support in the documentation.
     107    Then we can have the library of models documentation automatically built based on it.")
     108    PARAMETERS
     109    ...
     110    VARIABLES
     111    ...
     112end
     113}}}
     114
     115=== Option 2 ===
     116
     117A new section for setting the attributes:
     118{{{
     119#!mso
     120Model MyTankModel
     121    ATTRIBUTES
     122    Icon="Tank";
     123    IconSize="normal";
     124    Brief="Model for a special kind of tank";
     125    Documentation="The model documentation. This should be more detailed than Brief,
     126    possibly spanning in multiple lines.
     127    It also should be good a have some wiki formating support in the documentation.
     128    Then we can have the library of models documentation automatically built based on it.";
     129
     130    PARAMETERS
     131    ...
     132    VARIABLES
     133    ...
     134end
     135}}}
     136
     137||Who || Opinion || Why ||
     138||Rafael || '''agreed''' || proposed the change, but not sure about the option to be adopted ||