ProtocolProxy
This class can be used in a Jupyter Notebook to create and configure a protocol
To create it use the add_protocol method on another protocol
Initialize self. See help(type(self)) for accurate signature.
ProtocolModelAdd a connector between to process of this protocol
Exemple : protocol.add_connector(create.get_output_port('robot'), sub_proto.get_input_port('robot_i')) OR protocol.add_connector(create >> 'robot', sub_proto << 'robot_i')
ProcessWithPortProcessWithPortAdd a connector between to process of this protocol
Exemple : protocol.add_connector_by_names('create', 'robot', 'sub_proto','robot_i')
strstrstrstrAdd multiple connector inside the protocol
Exemple : protocol.add_connectors([ (create >> 'robot', sub_proto << 'robot_i'), (sub_proto.get_output_port('robot_o'), robot_travel.get_input_port('robot')) ])
listAdd a dynamic input port to the process
IOSpecDTO | NoneProcessWithPortAdd an empty protocol to this protocol
str | NoneProtocolProxyAdd an interface to link an input of the protocol to the input of one of the protocol's process
strstrstrAdd an outerface to link the output of one of the protocol's process to the output of the protocol
strstrstrAdd an output task to the protocol that receive the out_port resource
str | NoneProcessWithPortbool - TrueTaskProxyAdd a process (task or protocol) to this protocol. This process is automatically saved in the database
typestr | NonedictProcessProxyAdd a dynamic input port to the process. The method is here because it update the protocol model.
strgws_core.io.io_spec.IOSpecDTO | NoneProcessWithPortAdd a protocol from a protocol type
typestr | NonedictProtocolProxyAdd a resource to the protocol and connected it to the in_port
str | NonestrProcessWithPortTaskProxyAdd a Source task to the protocol and connected it to the in_port
str | NonestrProcessWithPortTaskProxyAdd a task to this
typestr | NonedictTaskProxyDelete a connector between to process of this protocol
Exemple : protocol.delete_connector('sub_proto','robot_i')
strstrDelete an interface of the protocol
strDelete an outerface of the protocol
strstrReturn all the next processes of the specified process in this protocol
strsetReturn all the processes of this protocol
dictReturn the direct next processes of the specified process in this protocol
strsetReturn the direct previous processes of the specified process in this protocol
strsetProcessWithPortProcessWithPortretrieve the resource of the input
AnyAccess input port information of a process to create connectors in protocol
strProcessWithPortAccess all input port information of a process to create connectors in protocol
list[ProcessWithPort]retrieve the resource model of the input
AnyResourceModelProtocolModelstrretrieve the resource of the output
AnyResourceAccess output port information of a process to create connectors in protocol
strProcessWithPortAccess all output port information of a process to create connectors in protocol
list[ProcessWithPort]retrieve the resource model of the output
AnyResourceModelstrAnyretreive a protocol or a task in this protocol
strProcessProxytype[Process]retreive a protocol or a task in this protocol by type
typelistboolboolboolboolboolCheck if an input port is connected. The method is here because it update the protocol model.
ProcessWithPortboolCheck if an output port is connected. The method is here because it update the protocol model.
ProcessWithPortboolProcessProxyReplace an output task by another process (task or protocol). Connect the input of the new process to the process that was connected to the output task.
strstrtypestrdict[str, typing.Any] | NoneProcessProxyReplace a process (task or protocol) by another process (task or protocol). If the new_process_input_port_name and existing_process_input_port_name are provided, the input of the new process is connected to the process that was connected to the existing_process_input_port_name (replace the process and connect it as the predecessor).
strstrtypestr | Nonestr | Nonedict[str, typing.Any] | NoneProcessProxySet the config param values
dictSet the param value
strAnystrProtocolProxy