Somebody replied to me answering my question, however the response is not shown within the public google.group (at least for me) so I am just putting this here for the records in the hope that it can be useful to other people.
In essence the response is that defineParameter is cosmetic only and they are no check enforced on min/max. You have to build a test within your own module
If I can make a suggestion, this is not very clear from the documentation and its easy to be misled. Maybe a quick sentence in the function definition could help new users understand this point? (Or better, make the test enforceable from within the function if development time can be assigned to this...)
*****
This is mildly related but I think its important that it is "out-there" for reference purpose
I have been trying to get an object for all the simulation parameters across module because I work with many parameters and I don't want to write a test for every single one of them. Thus I was fiddling with the P(),
parameters() params() function. Despite being described as similar, there are some interesting differences among the output of each of these function which could be important for other people
The slight
differences are in the output of P(), parameters() , params() and the way default
parameters (.plotInitialTime, .plotInterval, .saveInitialTime,
.saveInterval, .useCache) are recorded in these variation of the same function.
So, here is what kind of output you can expect from each variation of
the P() family function:
P(sim) return a list of the module Parameters that is currently
being processed by the simulation. Default values are overwritten with
user-defined value
params(sim) return a list of list in the form of list of module/ list of
parameters. with .checkpoint and .progress included as
"module". Each module entry has a list of the module parameters and
their value. Default values are overwritten by users-defined values. Default
Parameters are included even if deleted from the metadata
parameters(sim, asDF=FALSE) return a list of list of list
in the form of list of module / list of parameter / list of the value of
arguments in defineParameter(). Default values are NOT overwritten by the
user-defined values (it is the argument found in the defineParameters()).
Default Parameters are not included if you deleted them
Thanks for the quick reply and I hope this is useful
Louis