|
seq
2.0.0
|
An collection of OB's or Sequences. More...
Public Member Functions | |
| def | context (self) |
| context property More... | |
| def | reload_tpl (self, i) |
| dummy, does nothing More... | |
| def | load_tpl (self, t) |
| def | run_from_file (self, fn) |
| def | run_all (self) |
| def | wrap_modules (self) |
| Instances the Sequence and wraps them in the ROOT Sequence. More... | |
| def | wrap_and_run (self) |
| def | get_tree (self) |
| def | reset_tree (self) |
| def | resume (self) |
| def | retry_resume (self) |
| def | resume_node (self, serial_number) |
| def | abort (self) |
| def | nodes (self) |
| def | tplist (self) |
| def | find_node (self, nid) |
| Finds a node in the tree based on its id. More... | |
| def | find_node_by_number (self, serial_number) |
| 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) |
| def | mark_pause (self, serial_number, flag=True) |
| def | flip_flag (self, serial_number, flag) |
| def | flip_pause (self, serial_number) |
| def | flip_skip (self, serial_number) |
| def | set_params (self, v) |
| _----------------------------------------------------— More... | |
| def | notify_state_change (self, node, ts=None) |
| Published in the queue a node's state change. More... | |
| def | reset (self) |
| def | load_ob (self, obname) |
| def | context (self) |
| context property More... | |
| def | reload_tpl (self, i) |
| dummy, does nothing More... | |
| def | load_tpl (self, t) |
| def | run_from_file (self, fn) |
| def | run_all (self) |
| def | wrap_modules (self) |
| Instances the Sequence and wraps them in the ROOT Sequence. More... | |
| def | wrap_and_run (self) |
| def | get_tree (self) |
| def | reset_tree (self) |
| def | resume (self) |
| def | retry_resume (self) |
| def | resume_node (self, serial_number) |
| def | abort (self) |
| def | nodes (self) |
| def | tplist (self) |
| def | find_node (self, nid) |
| Finds a node in the tree based on its id. More... | |
| def | find_node_by_number (self, serial_number) |
| 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) |
| def | mark_pause (self, serial_number, flag=True) |
| def | flip_flag (self, serial_number, flag) |
| def | flip_pause (self, serial_number) |
| def | flip_skip (self, serial_number) |
| def | set_params (self, v) |
| _----------------------------------------------------— More... | |
| def | notify_state_change (self, node, ts=None) |
| Published in the queue a node's state change. More... | |
| def | reset (self) |
| def | load_ob (self, obname) |
Static Public Member Functions | |
| def | create_sequence (mod, *args, **kw) |
| def | create_sequence (mod, *args, **kw) |
Public Attributes | |
| cls | |
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() | |
An collection of OB's or Sequences.
This is the executor.
| def lib.ob.OB.abort | ( | self | ) |
Aborts execution
| def lib.ob.OB.abort | ( | self | ) |
Aborts execution
| def lib.ob.OB.context | ( | self | ) |
context property
| def lib.ob.OB.context | ( | self | ) |
context property
|
static |
|
static |
| def lib.ob.OB.find_node | ( | self, | |
| nid | |||
| ) |
Finds a node in the tree based on its id.
| 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 | |||
| ) |
| def lib.ob.OB.find_node_by_number | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.flip_flag | ( | self, | |
| serial_number, | |||
| flag | |||
| ) |
| def lib.ob.OB.flip_flag | ( | self, | |
| serial_number, | |||
| flag | |||
| ) |
| def lib.ob.OB.flip_pause | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.flip_pause | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.flip_skip | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.flip_skip | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.get_runtime_flags | ( | self, | |
| serial_number | |||
| ) |
_----------------------------------------------------— Runtime Flags _----------------------------------------------------—
| def lib.ob.OB.get_runtime_flags | ( | self, | |
| serial_number | |||
| ) |
_----------------------------------------------------— Runtime Flags _----------------------------------------------------—
| def lib.ob.OB.get_tree | ( | self | ) |
dict of dicts representing the tree
| def lib.ob.OB.get_tree | ( | self | ) |
dict of dicts representing the tree
| def lib.ob.OB.load_ob | ( | self, | |
| obname | |||
| ) |
Loads OB file (json)
| def lib.ob.OB.load_ob | ( | self, | |
| obname | |||
| ) |
Loads OB file (json)
| def lib.ob.OB.load_tpl | ( | self, | |
| t | |||
| ) |
Import the template module and call its ctor. Create node's tasks
| def lib.ob.OB.load_tpl | ( | self, | |
| t | |||
| ) |
Import the template module and call its ctor. Create node's tasks
| def lib.ob.OB.mark_pause | ( | self, | |
| serial_number, | |||
flag = True |
|||
| ) |
| def lib.ob.OB.mark_pause | ( | self, | |
| serial_number, | |||
flag = True |
|||
| ) |
| def lib.ob.OB.mark_skip | ( | self, | |
| serial_number, | |||
value = True |
|||
| ) |
| def lib.ob.OB.mark_skip | ( | self, | |
| serial_number, | |||
value = True |
|||
| ) |
| def lib.ob.OB.nodes | ( | self | ) |
Gets tree nodes
| def lib.ob.OB.nodes | ( | self | ) |
Gets tree nodes
| def lib.ob.OB.notify_state_change | ( | self, | |
| node, | |||
ts = None |
|||
| ) |
Published in the queue a node's state change.
| def lib.ob.OB.notify_state_change | ( | self, | |
| node, | |||
ts = None |
|||
| ) |
Published in the queue a node's state change.
| def lib.ob.OB.reload_tpl | ( | self, | |
| i | |||
| ) |
dummy, does nothing
| def lib.ob.OB.reload_tpl | ( | self, | |
| i | |||
| ) |
dummy, does nothing
| def lib.ob.OB.reset | ( | self | ) |
| def lib.ob.OB.reset | ( | self | ) |
| def lib.ob.OB.reset_tree | ( | self | ) |
| def lib.ob.OB.reset_tree | ( | self | ) |
| 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 | ( | self | ) |
Restart the Graph without recreating tasks. Finished tasks are ignored, pending task are executed.
| def lib.ob.OB.resume_node | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.resume_node | ( | self, | |
| serial_number | |||
| ) |
| def lib.ob.OB.retry_resume | ( | self | ) |
Retries last failed mode and restarts tree execution
| 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_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_from_file | ( | self, | |
| fn | |||
| ) |
Loads a python file and executes it.
| def lib.ob.OB.set_params | ( | self, | |
| v | |||
| ) |
_----------------------------------------------------—
| def lib.ob.OB.set_params | ( | self, | |
| v | |||
| ) |
_----------------------------------------------------—
| 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_runtime_flag | ( | self, | |
| serial_number, | |||
| flag, | |||
value = True |
|||
| ) |
Stores a node's runtime flag in dictionary.
| def lib.ob.OB.tplist | ( | self | ) |
Get list of modules loaded
| def lib.ob.OB.tplist | ( | self | ) |
Get list of modules loaded
| def lib.ob.OB.wrap_and_run | ( | self | ) |
This is the important one. Starts the outside sequence (wrapper) which executes the user's sequence.
| def lib.ob.OB.wrap_and_run | ( | self | ) |
This is the important one. Starts the outside sequence (wrapper) which executes the user's sequence.
| def lib.ob.OB.wrap_modules | ( | self | ) |
Instances the Sequence and wraps them in the ROOT Sequence.
| def lib.ob.OB.wrap_modules | ( | self | ) |
Instances the Sequence and wraps them in the ROOT Sequence.
| lib.ob.OB.cls |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |