| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
AbstractParameter
Abstract parameterization, which can exist independently or be coupled to other parameters upon request. Virtual/coupled/derived parameters cannot be overwritten explicitly, but their values will get recomputed once their corresponding base parameters get updated. This is a lazy process - parameter recalculation happens only when an out of date parameter is requested. This triggers a real-time cascaded update which affects all parameters from the nearest consistent base down to the current inconsistent node.
Implementing subclasses must override AbstractParameter._validate and virtual parameters should additionally override AbstractParameter._compute.
| Instance Methods | |||
|
|||
|
|||
| AbstractParameter |
|
||
|
|||
|
Inherited from |
|||
| Class Variables | |
NULL = Nonehash(x) |
|
| Properties | |
|
is_virtual True if this parameter is virtual (computed) |
|
|
name Parameter name |
|
|
value Parameter value (guaranteed to be up to date) |
|
|
Inherited from |
|
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Bind the current parameter to a base parameter. This converts the current parameter to a virtual one, whose value will get implicitly updated to be consistent with its base. Note that virtual parameters must have exactly one base; computing a parameter from multiple bases is not allowed. Cycles are also not allowed; the topology must always stay a tree with a non-virtual parameter at the root.
|
Find and return the non-virtual base parameter that is the root of the current hierarchy. If self is not virtual, return self.
|
Update the value of this parameter. This is not possible for virtual parameters.
|
| Property Details |
is_virtualTrue if this parameter is virtual (computed)
|
nameParameter name
|
valueParameter value (guaranteed to be up to date)
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 16 11:31:44 2018 | http://epydoc.sourceforge.net |