Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
rtctree.manager.Manager Class Reference

Manager node object. More...

Inheritance diagram for rtctree.manager.Manager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def components
def configuration
def create_component
 Module and component management.
def delete_component
def factory_profiles
def fork
 Undocumented functions.
def is_directory
 Node functionality.
def is_manager
def is_master
def load_module
def loadable_modules
def loaded_modules
def masters
def object
def profile
def restart
def set_config_parameter
 Manager configuration.
def shutdown
def slaves
def unload_module

Public Attributes

 parent

Private Member Functions

def _add_master
 Internal functions.
def _add_slave
def _parse
def _parse_children
def _parse_component_children
def _parse_manager_children
def _remove_master
def _remove_slave
def _set_parent

Private Attributes

 _components
 _configuration
 _factory_profiles
 _loadable_modules
 _loaded_modules
 _masters
 _obj
 _profile
 _slaves

Detailed Description

Manager node object.

Node representing a manager on a name server.

Manager nodes can occur below name server and directory nodes. They may
store child components and child managers. They can be used to add and
remove new components and managers to the tree at run time.

Definition at line 42 of file manager.py.


Constructor & Destructor Documentation

def rtctree.manager.Manager.__init__ (   self,
  name = None,
  parent = None,
  obj = None,
  args,
  kwargs 
)
Constructor. Calls the TreeNode constructor.

Definition at line 50 of file manager.py.


Member Function Documentation

def rtctree.manager.Manager._add_master (   self,
  new_master 
) [private]

Internal functions.

Definition at line 291 of file manager.py.

def rtctree.manager.Manager._add_slave (   self,
  new_slave 
) [private]

Definition at line 298 of file manager.py.

def rtctree.manager.Manager._parse (   self) [private]

Definition at line 307 of file manager.py.

def rtctree.manager.Manager._parse_children (   self) [private]

Definition at line 320 of file manager.py.

Definition at line 326 of file manager.py.

Definition at line 343 of file manager.py.

def rtctree.manager.Manager._remove_master (   self,
  master 
) [private]

Definition at line 372 of file manager.py.

def rtctree.manager.Manager._remove_slave (   self,
  slave 
) [private]

Definition at line 379 of file manager.py.

def rtctree.manager.Manager._set_parent (   self,
  new_parent 
) [private]

Definition at line 387 of file manager.py.

The list of components in this manager, if any.

This information can also be found by listing the children of this node
that are of type @ref Component. That method is more useful as it returns
the tree entries for the components.

Definition at line 137 of file manager.py.

The configuration dictionary of the manager.

Definition at line 178 of file manager.py.

def rtctree.manager.Manager.create_component (   self,
  module_name 
)

Module and component management.

Create a component out of a loaded module.

Turns a previously-loaded shared module into a component in the
manager. This will invalidate any objects that are children of this
node.

The @ref module_name argument can contain options that set various
properties of the new component. These must be appended to the module
name, prefixed by a question mark for each property, in key=value
format. For example, to change the instance name of the new component,
append '?instance_name=new_name' to the module name.

@param module_name Name of the module to turn into a component.
@raises FailedToCreateComponentError

Definition at line 60 of file manager.py.

def rtctree.manager.Manager.delete_component (   self,
  instance_name 
)
Delete a component.

Deletes the component specified by @ref instance_name from the manager.
This will invalidate any objects that are children of this node.

@param instance_name The instance name of the component to delete.
@raises FailedToDeleteComponentError

Definition at line 84 of file manager.py.

The factory profiles of all loaded modules.

Definition at line 151 of file manager.py.

Undocumented functions.

Fork the manager.

Definition at line 197 of file manager.py.

Node functionality.

Is this node a directory?

Reimplemented from rtctree.node.TreeNode.

Definition at line 216 of file manager.py.

Is this node a manager?

Reimplemented from rtctree.node.TreeNode.

Definition at line 221 of file manager.py.

Is this manager node a master manager?

Master managers have a direct presence on the name server. Slave
managers are only present as children of other managers.

Definition at line 233 of file manager.py.

def rtctree.manager.Manager.load_module (   self,
  path,
  init_func 
)
Load a shared library.

Call this function to load a shared library (DLL file under Windows,
shared object under UNIX) into the manager.

@param path The path to the shared library.
@param init_func The name entry function in the library.
@raises FailedToLoadModuleError

Definition at line 101 of file manager.py.

The list of loadable module profile dictionaries.

Definition at line 244 of file manager.py.

The list of loaded module profile dictionaries.

Definition at line 254 of file manager.py.

The list of master managers of this manager, if any.

If this manager is a master, this list will be empty.

Definition at line 264 of file manager.py.

The RTM::Manager object that this node contains.

Definition at line 227 of file manager.py.

The manager's profile.

Definition at line 186 of file manager.py.

Restart the manager.

Definition at line 207 of file manager.py.

def rtctree.manager.Manager.set_config_parameter (   self,
  param,
  value 
)

Manager configuration.

Set a configuration parameter of the manager.

@param The parameter to set.
@value The new value for the parameter.
@raises FailedToSetConfigurationError

Definition at line 163 of file manager.py.

Shut down the manager.

Definition at line 202 of file manager.py.

The list of slave managers of this manager, if any.

This information can also be found by listing the children of this node
that are of type @ref Manager.

Definition at line 276 of file manager.py.

def rtctree.manager.Manager.unload_module (   self,
  path 
)
Unload a loaded shared library.

Call this function to remove a shared library (e.g. a component) that
was previously loaded.

@param path The path to the shared library.
@raises FailedToUnloadModuleError

Definition at line 122 of file manager.py.


Member Data Documentation

Definition at line 143 of file manager.py.

Definition at line 169 of file manager.py.

Definition at line 151 of file manager.py.

Definition at line 244 of file manager.py.

Definition at line 254 of file manager.py.

Definition at line 307 of file manager.py.

Definition at line 50 of file manager.py.

Definition at line 186 of file manager.py.

Definition at line 281 of file manager.py.

Definition at line 387 of file manager.py.


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


rtctree
Author(s): Geoffrey Biggs
autogenerated on Wed Aug 26 2015 16:13:08