cutcutcodec.core.classes.node.Node
- class cutcutcodec.core.classes.node.Node(in_streams: list[Stream] | tuple[Stream], out_streams: list[Stream] | tuple[Stream])[source]
General node of the assembly graph.
Parameters
- copyboolean, default=True
If False, try to avoid realocation as much as possible. By default, the modifications are not inplace (readonly).
- in_streamstuple[Stream, …]
The streams arriving on the node (readonly).
- out_streamstuple[Stream, …]
The streams coming back on the node (readonly).
- abstract classmethod default()[source]
Provide an example of an instance of this node.
Returns
- exampleNode
An example of an instance of this class.
Notes
It is a
classmethodrather than astaticmethodin order to simplify inheritance.
- getstate() dict[source]
Retrieve the internal state of the object.
Returns
- statedict
An explicit dictionary containing the different attributes of the object. Even if this is not optimal in terms of memory and speed, the objects must be explicit so that they can be easily manipulated when the assembly graph is optimized. The keys must be of type str and the dictionary must to be jsonisable.