Node types#
Node objects are used to represent calculation nodes
in dependency tracing.
The BaseNode
class is the abstract base class
for all Node classes. The ItemNode
class
is for representing elements of Cells
objects
and Space objects such as UserSpace
.
An element of a Cells
object is identified
by arguments to the Cells
.
If the Cells
has a value for the arguments,
whether it’s calculated or input, the has_value()
returns True
and value
returns the value.
Similarly to the Cells
element,
an element of a Space is identified by arguments to the Space.
Since a call to the Space returns an ItemSpace
,
the value of the Space’s element is the ItemSpace
object
if it exists.
See also
BaseNode#
Attributes#
Return a tuple of the cells' arguments. |
|
Return |
|
Return the Cells object |
|
Return the value of the cells. |
ItemNode#
- class ItemNode(node)[source]#
Node class to represent elements of Cells and Spaces
This class is for representing elements of
Cells
objects and Space objects such asUserSpace
. An element of aCells
object is identified by arguments to theCells
. If theCells
has a value for the arguments, whether it’s calculated or input, thehas_value()
returnsTrue
andvalue
returns the value. Similarly to theCells
element, an element of a Space is identified by arguments to the Space. Since a call to the Space returns anItemSpace
, the value of the Space’s element is theItemSpace
object if it ever exists.See also
Changed in version 0.15.0: Renamed to ItemNode from Element.
Attributes#
Return a tuple of the cells' arguments. |
|
Return |
|
Return the Cells object |
|
Return the value of the cells. |
|
A list of nodes that this node refers to. |
|
A list of nodes that refer to this node. |
|
Return the precedents |
ReferenceNode#
Attributes#
Return a tuple of the cells' arguments. |
|
Always returns |
|
Return the ReferenceProxy object |
|
Return the value of the cells. |