This class shall serve as a representation of a parameter.
It might be useful if a little more information than the pure parameter value is required (or even only useful).
Each parameter must have a value. However additional attributes can be passed to the constructor and will be stored in the object.
Notes
BIG ASSUMPTION: stored values are not mutable, ie nobody should do
cls.parameter1[:] = ...
or we wouldn’t know that it was changed Here is a list of possible additional attributes:
Methods
reset() | Simply reset the flag |
reset_value() | Reset value to the default |
Specify a Parameter with a default value and arbitrary number of additional attributes.
Parameters : | name : str
doc : str
index : int or None
ro : bool
value :
|
---|
Methods
reset() | Simply reset the flag |
reset_value() | Reset value to the default |
Returns True if current value is equal to default one
Returns True if current value is bound to default one
Reset value to the default