Package mrv :: Module util :: Class InterfaceMaster :: Class InterfaceBase
[hide private]
[frames] | no frames]

Class InterfaceBase

source code

object --+
         |
        InterfaceMaster.InterfaceBase

If your interface class is derived from this base, you get access to access to call to the number of your current caller.

Note: You can register an InterfaceBase with several InterfaceMasters and share the caller count respectively

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
aboutToRemoveFromCaller(self)
Called once our interface is about to be removed from the current caller - you will not receive a call from it anymore
source code
 
callerId(self)
Return the number of the caller that called your interface method
source code
 
givenToCaller(self)
Called once our interface has been given to a new caller.
source code
 
numCallers(self)
Returns: number possible callers
source code

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

Properties [hide private]
  _current_caller_id
  _num_callers

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

callerId(self)

source code 
Return the number of the caller that called your interface method

Note: the return value of this method is undefined if called if the method has been called by someone not being an official caller (like yourself)

givenToCaller(self)

source code 
Called once our interface has been given to a new caller. The caller has not made a call yet, but its id can be queried

numCallers(self)

source code 
Returns:
number possible callers