ParameterBase¶
-
class
minkit.
ParameterBase
[source]¶ Bases:
object
Abstract class for parameter objects.
Attributes Summary
Value of the parameter.
Methods Summary
copy
()Create a copy of this instance.
from_json_object
(obj)Build the parameter from a JSON object (a dictionary).
Enter a context where the attributes of the parameter will be restored on exit.
Represent this class as a JSON-like object.
Attributes Documentation
-
dependent
= False¶
Methods Documentation
-
copy
()[source]¶ Create a copy of this instance.
Warning
Avoid calling this method directly for sets of parameters and use the
Registry.copy()
method instead, so the possible dependencies among parameters are correctly solved.
-
classmethod
from_json_object
(obj)[source]¶ Build the parameter from a JSON object (a dictionary). This is meant to be used together with the
json
module.
-