Login
Back to bricks list
Introduction Version

Connector

Connector class representing the connection of two Ports.

:param in_port: Left-hand side in_port :type in_port: InPort :param out_port: Right-hand side out_port :type out_port: OutPort

Attributes

left_port_name: strleft_process: ProcessModelright_port_name: strright_process: ProcessModel

Functions

__INIT__

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

Parameters:
NameTypeDefault valueDescription
left_processProcessModel
right_processProcessModel
left_port_namestr
right_port_namestr
check_compatiblitybool True
IS_CONNECTED_TO

return true if the connector is connected to the process model

Parameters:
NameTypeDefault valueDescription
process_modelProcessModel
Return type:
bool
IS_LEFT_CONNECTED_TO

return true if the left side is the specified process connected to the specified port

Parameters:
NameTypeDefault valueDescription
process_model_namestr
port_namestr
Return type:
bool
IS_RIGHT_CONNECTED_TO

return true if the right side is the specified process connected to the specified port

Parameters:
NameTypeDefault valueDescription
process_model_namestr
port_namestr
Return type:
bool
PROPAGATE_RESOURCE

Propagate the resource from the output port to the input port.

Return type:
bool
RESET_RIGHT_PORT

reset the right port

TO_DTO
Return type:
ConnectorDTO