ParameterBase¶
-
class
minkit.ParameterBase[source]¶ Bases:
objectAbstract class for parameter objects.
Attributes Summary
valueValue 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). restoring_state()Enter a context where the attributes of the parameter will be restored on exit. to_json_object()Represent this class as a JSON-like object. Attributes Documentation
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
jsonmodule.Parameters: obj (dict) – object to use to construct the class. Returns: Parameter created from the JSON object. Return type: Parameter
-