ONode
- class ioiocore.o_node.ONode(output_ports=None, decimation_factor=None, **kwargs)[source]
Bases:
NodeA class representing an output node, inheriting from Node.
- Parameters:
output_ports (list)
decimation_factor (int)
- class Configuration(**kwargs)[source]
Bases:
ConfigurationConfiguration class for ONode.
- __init__(output_ports=None, decimation_factor=None, **kwargs)[source]
Initializes the ONode.
- Parameters:
output_ports (list of OPort.Configuration, optional) – A list of output port configurations (default is None).
**kwargs (additional keyword arguments) – Other configuration options.
decimation_factor (int)
- config: Configuration
- connect(output_port, target, input_port)[source]
Connects an output port to an input port of a target node.
- Parameters:
output_port (str) – The name of the output port.
target (INode) – The target node to which the output port will be connected.
input_port (str) – The name of the input port on the target node.
- cycle(data={})[source]
Performs a cycle operation on the ONode.
- Parameters:
data (dict, optional) – A dictionary containing the data for the cycle operation (default is an empty dictionary).
- disconnect(output_port, target, input_port)[source]
Disconnects an output port from an input port of a target node.
- Parameters:
output_port (str) – The name of the output port.
target (INode) – The target node from which the output port will be disconnected.
input_port (str) – The name of the input port on the target node.
- setup(data, port_context_in)[source]
Sets up the ONode.
- Parameters:
data (dict) – A dictionary containing setup data.
port_context_in (dict) – A dictionary containing input port context.
- Returns:
A dictionary containing output port context.
- Return type:
dict
- property source_delay: float