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 a dynamic output port to the process.
IOSpecDTO | NoneProcessWithPortAdd a dynamic parameter specification to the process.
strstrParamSpecDTOAdd 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 | Nonedict[str, typing.Any] | NoneProcessProxyAdd a dynamic input port to the process. The method is here because it updates the protocol model.
strgws_core.io.io_spec.IOSpecDTO | NoneProcessWithPortAdd a dynamic output port to a process.
strgws_core.io.io_spec.IOSpecDTO | NoneProcessWithPortAdd a dynamic parameter specification to a process.
strstrstrParamSpecDTOAdd a protocol from a protocol type
typestr | Nonedict[str, typing.Any] | NoneProtocolProxyAdd 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 | Nonedict[str, typing.Any] | NoneTaskProxyDelete a connector between to process of this protocol
Exemple : protocol.delete_connector('sub_proto','robot_i')
strstrDelete a dynamic input port from the process.
strDelete a dynamic output port from the process.
strDelete an interface of the protocol
strDelete an outerface of the protocol
strDelete the process from its parent protocol. If the process is not in draft status, it is reset first.
strDelete a dynamic input port from a process.
strstrDelete a dynamic output port from a process.
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
strProcessProxyretreive a protocol or a task in this protocol by id
strgws_core.process.process_proxy.ProcessProxy | Nonetype[Process]retreive a protocol or a task in this protocol by type
typelistboolboolboolstrboolboolboolCheck 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.
ProcessWithPortboolProcessProxyRemove a dynamic parameter specification from the process.
strstrRemove a dynamic parameter specification from a process.
strstrstrReplace 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] | NoneProcessProxyReset the process, clearing its execution results and impacted entities.
Set the config param values
dictSet the param value
strAnyUpdate the specification of a dynamic input port.
strIOSpecDTOUpdate the specification of a dynamic output port.
strIOSpecDTOUpdate a dynamic parameter specification of the process.
strstrParamSpecDTOUpdate the specification of a dynamic input port of a process.
strstrIOSpecDTOUpdate the specification of a dynamic output port of a process.
strstrIOSpecDTOUpdate a dynamic parameter specification of a process.
strstrstrParamSpecDTOstrProtocolProxy