ReconProto
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')
ConnectorPartSpecConnectorPartSpecAdd 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
strProcessSpecstrAdd an outerface to link the output of one of the protocol's process to the output of the protocol
strProcessSpecstrAdd a process to this protocol. The process_type can be a task or a protocol
Type[Process]strConfigParamsDictProcessSpecExtend 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
ProtocolCreateConfigInputSpecsOutputSpecsGet the process spec of the process with the given instance name
strProcessSpecReturns the name of the class
bool - Falsebool - Falsebool - FalsestrReturns the full name of the class
bool - Falsebool - FalsestrstrVersionGet the human name of the object
strGet the input specs of the protocol
InputSpecsGet the input specs of the protocol
OutputSpecGet the short description of the object
strGet the style of the object
TypingStyleGet the typing name of the object Ex: 'RESOURCE.gws_core.Table'
strTypingNameObjGet all the classes that inherit this class
ListInstantiate the protocol with the default config
Protocol