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

Class Call

source code


Encapsulates a Call of a method for a group of objects/Persons with a given delay.


Author: F. Ludwig

Instance Methods [hide private]
 
__init__(self, group, func_name, delay)
If Call is instantiated, group is set up, func_name and delay is stored.
source code
 
__call__(self, *args, **kwargs)
If Call instance is called, for all members of self.group a Message instance is created and stored to schedule the execution of self.func_name after self.delay ticks.
source code

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

Instance Variables [hide private]
  group
the group of things for each the method func_name will be executes on
  func_name
the name of the method that will be executed for each group member
  delay
the execution delay of the method func_name in ticks
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, group, func_name, delay)
(Constructor)

source code 

If Call is instantiated, group is set up, func_name and delay is stored.

Overrides: object.__init__

__call__(self, *args, **kwargs)
(Call operator)

source code 

If Call instance is called, for all members of self.group a Message instance is created and stored to schedule the execution of self.func_name after self.delay ticks.

Parameters:
  • args - arguments for the methods called func_name to be executed
  • kwargs - keyword arguments for the methods called func_name to be executed