|
seq
4.0.0-pre3
|
An collection of OB's or Sequences. More...
Public Member Functions | |
| def | reload_tpl (self, i) |
| dummy, does nothing More... | |
| def | load_tpl (self, t, append_flag=False) |
| Import the template module and call its ctor. More... | |
| def | run_from_file (self, fn) |
| Loads a python file and executes it. More... | |
| def | run_all (self) |
| Run all loaded modules. More... | |
| def | run_node (self, serial_number) |
| Find node, run it. More... | |
| def | wrap_modules (self) |
| Instances the Sequence and wraps them in the ROOT Sequence. More... | |
| def | wrap_and_run (self, wrapper=None) |
| This is the important one. More... | |
| def | get_tree (self) |
| dict of dicts representing the tree More... | |
| def | reset_tree (self) |
| Resets the tree. More... | |
| def | resume (self) |
| Restart the Graph without recreating tasks. More... | |
| def | retry_resume (self) |
| Retries last failed mode and restarts tree execution. More... | |
| def | resume_node (self, serial_number) |
| Resumes node execution. More... | |
| def | abort (self) |
| Aborts execution. More... | |
| def | nodes (self) |
| Gets tree nodes. More... | |
| def | find_node (self, nid) |
| Finds a node in the tree based on its id. More... | |
| def | find_node_by_number (self, serial_number) |
| Search and return for a node with given serial number. More... | |
| def | get_runtime_flags (self, serial_number) |
| _----------------------------------------------------— Runtime Flags _----------------------------------------------------— More... | |
| def | set_runtime_flag (self, serial_number, flag, value=True) |
| Stores a node's runtime flag in dictionary. More... | |
| def | mark_skip (self, serial_number, value=True) |
| Marks the node for skip. More... | |
| def | mark_pause (self, serial_number, flag=True) |
| Marks a node for pause. More... | |
| def | flip_flag (self, serial_number, flag) |
| def | flip_pause (self, serial_number) |
| def | flip_skip (self, serial_number) |
| def | checked_cb (self, serial_number) |
| Checks (unblocks) a Checkbox node. More... | |
| def | continue_seq_cb (self, node_result) |
| Continue sequence after confirmation from popup dialog. More... | |
| def | dumptree (self, fname) |
| def | set_variable (self, path, value) |
| _----------------------------------------------------— More... | |
| def | get_variable (self, path) |
| def | notify_state_change (self, node, ts=None, **kw) |
| Published in the queue a node's state change. More... | |
| def | reset (self) |
| def | load_ob (self, obname, append_flag=False, **kw) |
| Loads OB file (json) More... | |
| def | list_ob (self) |
Static Public Member Functions | |
| def | create_sequence (mod, *args, **kw) |
Static Public Attributes | |
| tpmods = attr.ib(init=False, default=attr.Factory(list)) | |
| lock = attr.ib(init=False, default=attr.Factory(asyncio.Semaphore)) | |
| queue = attr.ib(init=False, default=attr.Factory(asyncio.Queue)) | |
| wrapper = attr.ib(init=False, default=None) | |
| wrapper_task = attr.ib(init=False, default=None) | |
| transitions_q = attr.ib(init=False, default=None) | |
| monitor_task = attr.ib(init=False, default=None) | |
| monitor_flag = attr.ib(default=False) | |
| controller = cv.ContextVar("controller", default=None) | |
| ob_scripts = attr.ib(init=False, default=attr.Factory(list)) | |
| runtime_flags = dict() | |
| ottoif = OttoClient() | |
| dictionary | status_map_otto |
Properties | |
| context = property | |
| context property More... | |
An collection of OB's or Sequences.
This is the executor.
| def lib.ob.OB.abort | ( | self | ) |
Aborts execution.
| def lib.ob.OB.checked_cb | ( | self, | |
| serial_number | |||
| ) |
Checks (unblocks) a Checkbox node.
| def lib.ob.OB.continue_seq_cb | ( | self, | |
| node_result | |||
| ) |
Continue sequence after confirmation from popup dialog.
|
static |
| def lib.ob.OB.dumptree | ( | self, | |
| fname | |||
| ) |
| def lib.ob.OB.find_node | ( | self, | |
| nid | |||
| ) |
Finds a node in the tree based on its id.
| def lib.ob.OB.find_node_by_number | ( | self, | |
| serial_number | |||
| ) |
Search and return for a node with given serial number.
| def lib.ob.OB.flip_flag | ( | self, | |
| serial_number, | |||
| flag | |||
| ) |
| def lib.ob.OB.flip_pause | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.flip_skip | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.get_runtime_flags | ( | self, | |
| serial_number | |||
| ) |
_----------------------------------------------------— Runtime Flags _----------------------------------------------------—
Gets runtime flags from node with given serial number
| def lib.ob.OB.get_tree | ( | self | ) |
dict of dicts representing the tree
| def lib.ob.OB.get_variable | ( | self, | |
| path | |||
| ) |
| def lib.ob.OB.list_ob | ( | self | ) |
| def lib.ob.OB.load_ob | ( | self, | |
| obname, | |||
append_flag = False, |
|||
| ** | kw | ||
| ) |
Loads OB file (json)
| def lib.ob.OB.load_tpl | ( | self, | |
| t, | |||
append_flag = False |
|||
| ) |
Import the template module and call its ctor.
Create node's tasks
| def lib.ob.OB.mark_pause | ( | self, | |
| serial_number, | |||
flag = True |
|||
| ) |
Marks a node for pause.
| def lib.ob.OB.mark_skip | ( | self, | |
| serial_number, | |||
value = True |
|||
| ) |
Marks the node for skip.
| def lib.ob.OB.nodes | ( | self | ) |
Gets tree nodes.
| def lib.ob.OB.notify_state_change | ( | self, | |
| node, | |||
ts = None, |
|||
| ** | kw | ||
| ) |
Published in the queue a node's state change.
| def lib.ob.OB.reload_tpl | ( | self, | |
| i | |||
| ) |
dummy, does nothing
| def lib.ob.OB.reset | ( | self | ) |
| def lib.ob.OB.reset_tree | ( | self | ) |
Resets the tree.
Forces the engine to rebuild the tree by invalidating the current one.
| def lib.ob.OB.resume | ( | self | ) |
Restart the Graph without recreating tasks.
Finished tasks are ignored, pending task are executed.
| def lib.ob.OB.resume_node | ( | self, | |
| serial_number | |||
| ) |
Resumes node execution.
Finds a paused node and restarts it
| def lib.ob.OB.retry_resume | ( | self | ) |
Retries last failed mode and restarts tree execution.
| def lib.ob.OB.run_all | ( | self | ) |
Run all loaded modules.
| def lib.ob.OB.run_from_file | ( | self, | |
| fn | |||
| ) |
Loads a python file and executes it.
| def lib.ob.OB.run_node | ( | self, | |
| serial_number | |||
| ) |
Find node, run it.
| def lib.ob.OB.set_runtime_flag | ( | self, | |
| serial_number, | |||
| flag, | |||
value = True |
|||
| ) |
Stores a node's runtime flag in dictionary.
| def lib.ob.OB.set_variable | ( | self, | |
| path, | |||
| value | |||
| ) |
_----------------------------------------------------—
Sets variable value
| def lib.ob.OB.wrap_and_run | ( | self, | |
wrapper = None |
|||
| ) |
This is the important one.
Starts the outside sequence (wrapper) which executes the user's sequence(s).
| def lib.ob.OB.wrap_modules | ( | self | ) |
Instances the Sequence and wraps them in the ROOT Sequence.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
context property