Execution context object.
More...
|
def | __init__ (self, ec_obj=None, handle=None, args, kwargs) |
|
def | activate_component (self, comp_ref) |
|
def | deactivate_component (self, comp_ref) |
|
def | get_component_state (self, comp) |
|
def | handle (self) |
|
def | kind (self) |
|
def | kind_as_string (self, add_colour=True) |
|
def | kind_string (self) |
|
def | owner (self) |
|
def | owner_name (self) |
|
def | participant_names (self) |
|
def | participants (self) |
|
def | properties (self) |
|
def | rate (self) |
|
def | rate (self, new_rate) |
|
def | reparse (self) |
|
def | reset_component (self, comp_ref) |
|
def | running (self) |
|
def | running_as_string (self, add_colour=True) |
|
def | running_string (self) |
|
def | start (self) |
|
def | stop (self) |
|
Execution context object.
An execution context, within which components may be executing.
Definition at line 30 of file exec_context.py.
◆ __init__()
def rtctree.exec_context.ExecutionContext.__init__ |
( |
|
self, |
|
|
|
ec_obj = None , |
|
|
|
handle = None , |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Constructor.
@param ec_obj The CORBA ExecutionContext object to wrap.
@param handle The handle of this execution context, which can be used
to uniquely identify it.
Definition at line 32 of file exec_context.py.
◆ _parse()
def rtctree.exec_context.ExecutionContext._parse |
( |
|
self | ) |
|
|
private |
◆ activate_component()
def rtctree.exec_context.ExecutionContext.activate_component |
( |
|
self, |
|
|
|
comp_ref |
|
) |
| |
Activate a component within this context.
@param comp_ref The CORBA LightweightRTObject to activate.
Definition at line 51 of file exec_context.py.
◆ deactivate_component()
def rtctree.exec_context.ExecutionContext.deactivate_component |
( |
|
self, |
|
|
|
comp_ref |
|
) |
| |
Deactivate a component within this context.
@param comp_ref The CORBA LightweightRTObject to deactivate.
Definition at line 60 of file exec_context.py.
◆ get_component_state()
def rtctree.exec_context.ExecutionContext.get_component_state |
( |
|
self, |
|
|
|
comp |
|
) |
| |
Get the state of a component within this context.
@param comp The CORBA LightweightRTObject to get the state of.
@return The component state, as a LifeCycleState value.
Definition at line 78 of file exec_context.py.
◆ handle()
def rtctree.exec_context.ExecutionContext.handle |
( |
|
self | ) |
|
◆ kind()
def rtctree.exec_context.ExecutionContext.kind |
( |
|
self | ) |
|
◆ kind_as_string()
def rtctree.exec_context.ExecutionContext.kind_as_string |
( |
|
self, |
|
|
|
add_colour = True |
|
) |
| |
Get the type of this context as an optionally coloured string.
@param add_colour If True, ANSI colour codes will be added.
@return A string describing the kind of execution context this is.
Definition at line 88 of file exec_context.py.
◆ kind_string()
def rtctree.exec_context.ExecutionContext.kind_string |
( |
|
self | ) |
|
The kind of this execution context as a coloured string.
Definition at line 164 of file exec_context.py.
◆ owner()
def rtctree.exec_context.ExecutionContext.owner |
( |
|
self | ) |
|
◆ owner_name()
def rtctree.exec_context.ExecutionContext.owner_name |
( |
|
self | ) |
|
The name of the RTObject that owns this context.
Definition at line 175 of file exec_context.py.
◆ participant_names()
def rtctree.exec_context.ExecutionContext.participant_names |
( |
|
self | ) |
|
The names of the RTObjects participating in this context.
Definition at line 190 of file exec_context.py.
◆ participants()
def rtctree.exec_context.ExecutionContext.participants |
( |
|
self | ) |
|
The list of RTObjects participating in this context.
Definition at line 184 of file exec_context.py.
◆ properties()
def rtctree.exec_context.ExecutionContext.properties |
( |
|
self | ) |
|
The execution context's extra properties dictionary.
Definition at line 197 of file exec_context.py.
◆ rate() [1/2]
def rtctree.exec_context.ExecutionContext.rate |
( |
|
self | ) |
|
The execution rate of this execution context.
Definition at line 203 of file exec_context.py.
◆ rate() [2/2]
def rtctree.exec_context.ExecutionContext.rate |
( |
|
self, |
|
|
|
new_rate |
|
) |
| |
◆ reparse()
def rtctree.exec_context.ExecutionContext.reparse |
( |
|
self | ) |
|
Reparse this execution context.
This causes the execution context's state, profile and other
information to be reloaded from the remote object.
Definition at line 108 of file exec_context.py.
◆ reset_component()
def rtctree.exec_context.ExecutionContext.reset_component |
( |
|
self, |
|
|
|
comp_ref |
|
) |
| |
Reset a component within this context.
@param comp_ref The CORBA LightweightRTObject to reset.
Definition at line 69 of file exec_context.py.
◆ running()
def rtctree.exec_context.ExecutionContext.running |
( |
|
self | ) |
|
◆ running_as_string()
def rtctree.exec_context.ExecutionContext.running_as_string |
( |
|
self, |
|
|
|
add_colour = True |
|
) |
| |
Get the state of this context as an optionally coloured string.
@param add_colour If True, ANSI colour codes will be added.
@return A string describing this context's running state.
Definition at line 117 of file exec_context.py.
◆ running_string()
def rtctree.exec_context.ExecutionContext.running_string |
( |
|
self | ) |
|
The state of this execution context as a coloured string.
Definition at line 220 of file exec_context.py.
◆ start()
def rtctree.exec_context.ExecutionContext.start |
( |
|
self | ) |
|
◆ stop()
def rtctree.exec_context.ExecutionContext.stop |
( |
|
self | ) |
|
◆ _handle
rtctree.exec_context.ExecutionContext._handle |
|
private |
◆ _is_service
rtctree.exec_context.ExecutionContext._is_service |
|
private |
◆ _mutex
rtctree.exec_context.ExecutionContext._mutex |
|
private |
◆ _obj
rtctree.exec_context.ExecutionContext._obj |
|
private |
◆ _owner
rtctree.exec_context.ExecutionContext._owner |
|
private |
◆ _participants
rtctree.exec_context.ExecutionContext._participants |
|
private |
◆ _properties
rtctree.exec_context.ExecutionContext._properties |
|
private |
◆ EVENT_DRIVEN
int rtctree.exec_context.ExecutionContext.EVENT_DRIVEN = 2 |
|
static |
Constant for an event driven execution context.
Definition at line 240 of file exec_context.py.
◆ kind
rtctree.exec_context.ExecutionContext.kind |
◆ OTHER
int rtctree.exec_context.ExecutionContext.OTHER = 3 |
|
static |
Constant for an execution context of some other type.
Definition at line 242 of file exec_context.py.
◆ PERIODIC
int rtctree.exec_context.ExecutionContext.PERIODIC = 1 |
|
static |
Constant for a periodic execution context.
Definition at line 238 of file exec_context.py.
The documentation for this class was generated from the following file: