seq  1.1.0
All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
seqlib.nodes.action.Action Class Reference

Action ctor. More...

Inheritance diagram for seqlib.nodes.action.Action:
seqlib.nodes.action.ActionInThread seqlib.nodes.action.ActionInThread seqlib.nodes.action.EndNode seqlib.nodes.action.EndNode seqlib.nodes.action.StartNode seqlib.nodes.action.StartNode

Public Member Functions

def __attrs_post_init__
 
def context
 Get context from the running Sequence. More...
 
def __call__
 
def __attrs_post_init__
 
def context
 Get context from the running Sequence. More...
 
def __call__
 

Public Attributes

 name
 
 id
 
 state
 
 t_start
 
 t_end
 
 result
 
 in_error
 
 exception
 

Static Public Attributes

tuple f = attr.ib(default=None, repr=False)
 

Detailed Description

Action ctor.

Action nodes executes coroutines in a Sequencer script.

Parameters
fThe coroutine the node will execute
idUnique id. If not provided an unique identifier is assigned.
nameNode name. If not provided a name is assigned.
Exceptions
TypeExceptionis f is not a coroutine.

Member Function Documentation

def seqlib.nodes.action.Action.__attrs_post_init__ (   self)
def seqlib.nodes.action.Action.__attrs_post_init__ (   self)
def seqlib.nodes.action.Action.__call__ (   self,
  resume = False 
)
Executes node action.

If the action is a coroutine a task is created and passed to
the asyncio loop for execution.
def seqlib.nodes.action.Action.__call__ (   self,
  resume = False 
)
Executes node action.

If the action is a coroutine a task is created and passed to
the asyncio loop for execution.
def seqlib.nodes.action.Action.context (   self)

Get context from the running Sequence.

def seqlib.nodes.action.Action.context (   self)

Get context from the running Sequence.

Member Data Documentation

seqlib.nodes.action.Action.exception
tuple seqlib.nodes.action.Action.f = attr.ib(default=None, repr=False)
static
seqlib.nodes.action.Action.id
seqlib.nodes.action.Action.in_error
seqlib.nodes.action.Action.name
seqlib.nodes.action.Action.result
seqlib.nodes.action.Action.state
seqlib.nodes.action.Action.t_end
seqlib.nodes.action.Action.t_start

The documentation for this class was generated from the following files: