ReconProto
Initialize self. See help(type(self)) for accurate signature.
Add the connexion between 2 processes of the protocol self.add_connector(create >> 'robot', move << 'robot')
ConnectorPartSpec
ConnectorPartSpec
Add the connexion between processes of the protocol self.add_connectors([ (create >> 'robot', move << 'robot'), (move >> 'robot', eat << 'robot'), ])
List[Tuple[ConnectorPartSpec, ConnectorPartSpec]]
Add an interface to link an input of the protocol to the input of one of the protocol's process
str
ProcessSpec
str
Add an outerface to link the output of one of the protocol's process to the output of the protocol
str
ProcessSpec
str
Add a process to this protocol. The process_type can be a task or a protocol
Type[Process]
str
ConfigParamsDict
ProcessSpec
Extend this method to configure the protocol ( In this method you can reate sub process, add connectors and configure interface and outerface
Here is a simpe exemple to configure a protocol
Add the processes
create: processSpec = self.register_process(RobotCreate, "create") move: processSpec = self.register_process(RobotMove, "move") eat: processSpec = self.register_process(RobotEat, "eat")
Add the connexion between processes
self.add_connectors([ (create >> 'robot', move << 'robot'), (move >> 'robot', eat << 'robot'), ])
Configure protocol interface and outerfaces
self.add_interface('robot', move_1, 'robot') self.add_outerface('robot', eat_2, 'robot')
DO NOT OVERIDE This methdo return the parameters to create the protocol
ProtocolCreateConfig
InputSpecs
OutputSpecs
Get the process spec of the process with the given instance name
str
ProcessSpec
Returns the name of the class
bool
- False
bool
- False
bool
- False
str
Returns the full name of the class
bool
- False
bool
- False
str
str
Version
Get the human name of the object
str
Get the input specs of the protocol
InputSpecs
Get the input specs of the protocol
OutputSpec
Get the short description of the object
str
Get the style of the object
TypingStyle
Get the typing name of the object Ex: 'RESOURCE.gws_core.Table'
str
TypingNameObj
Get all the classes that inherit this class
List
Instantiate the protocol with the default config
Protocol