pafsim.connector

Module Contents

exception pafsim.connector.EdgeConnectionError

Bases: Exception

Inheritance diagram of pafsim.connector.EdgeConnectionError

Exception class used for invalid connections

Initialize self. See help(type(self)) for accurate signature.

class pafsim.connector.Connector(a_node: pafsim.processor.Processor, b_node: pafsim.processor.Processor)

The Connector class is used as edges in the ProcessingChain. It transposes output data to the expected input format of the post processors.

ToDo: Currently the ProcessingChain does not use the Connector class

connect()

Connects to Processors and checks if the connection is valid

Raises:

EdgeConnectionError – If a connection is invalid

assign()

Assigns the Processors

Raises:

EdgeConnectionError – Mismatch of inputs

transpose()

Transpose the output of the pre processor to the expected input of the post processor

ToDo: Not implemented yet