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#
- class BaseNode(node)[source]#
Base class for all Node classes
See also
ItemNode: Node representing a cells evaluationReferenceNode: Node representing a reference
Added in version 0.15.0.
Attributes#
ItemNode#
- class ItemNode(node)[source]#
Node class to represent elements of Cells and Spaces
This class is for representing elements of
Cellsobjects and Space objects such asUserSpace. An element of aCellsobject is identified by arguments to theCells. If theCellshas a value for the arguments, whether it’s calculated or input, thehas_value()returnsTrueandvaluereturns the value. Similarly to theCellselement, 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 theItemSpaceobject if it ever exists.See also
Changed in version 0.15.0: Renamed to ItemNode from Element.