Package mosp :: Module group :: Class CallGroup
[hide private]
[frames] | no frames]

Class CallGroup

source code


A grouping object containing a group of things (typically a PersonGroup(set)), which if a generic attribute (method) is requested, returns a Call instance for the group and this attribute=method that shall be called.


Author: F. Ludwig

Instance Methods [hide private]
 
__init__(self, group, delay=1)
Inits the CallGroup, setup group and execution delay.
source code
 
__getattr__(self, func_name)
If any func_name is requested, return an instance of Call with the group, the function name and the defined execution delay as parameter.
source code
 
__call__(self, delay)
If the CallGroup is called, setup the execution delay and return the CallGroup.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, group, delay=1)
(Constructor)

source code 

Inits the CallGroup, setup group and execution delay.

Parameters:
  • group - the group for which a methods shall be executed
  • delay - execution delay in ticks
Overrides: object.__init__

__getattr__(self, func_name)
(Qualification operator)

source code 

If any func_name is requested, return an instance of Call with the group, the function name and the defined execution delay as parameter.

Parameters:
  • func_name - generic requested function that shall be called for the group

__call__(self, delay)
(Call operator)

source code 

If the CallGroup is called, setup the execution delay and return the CallGroup.

Parameters:
  • delay - execution delay in ticks