Package schrodinger :: Package maestro :: Module maestro :: Class _Callback
[hide private]
[frames] | no frames]

Class _Callback

Class that allows each callback function to be registered by specifying it in the string format ("module.function") or in callable reference format (reference to function itself). ValueError is raised if the same function is registered twice and when attempting to remove a function that is no longer registered. Ev:63303

Instance Methods [hide private]
 
__init__(self, name, c_add_func, c_remove_func)
 
invoke(self, *args)
Invoke callbacks specified as callable references
 
invokeJobIncorporation(self, *args)
We need a special invoke method for job incorporation callbacks as they return values which we need to test.
 
add(self, callback_func)
Add a callback (callable reference or string format)
 
remove(self, callback_func)
Remove a callback (callable reference or string format)
Method Details [hide private]

invokeJobIncorporation(self, *args)

 

We need a special invoke method for job incorporation callbacks as they return values which we need to test. See EV 60588 for details