Exemplo n.º 1
0
def get_triggers( config ):
    customTriggers = callbackLoader.get_callback_module(
                    config.get_trigger_callbacks_module_name() )
    if customTriggers != None:
        cbMap = defaultTriggers.get_callback_map().copy()
        cbMap.update( customTriggers.get_callback_map() )
        return cbMap
    return defaultTriggers.get_callback_map()
Exemplo n.º 2
0
def get_triggers(config):
    customTriggers = callbackLoader.get_callback_module(
        config.get_trigger_callbacks_module_name())
    if customTriggers != None:
        cbMap = defaultTriggers.get_callback_map().copy()
        cbMap.update(customTriggers.get_callback_map())
        return cbMap
    return defaultTriggers.get_callback_map()
Exemplo n.º 3
0
 def get_gain_callbacks(self):
     if not hasattr(self, 'gainCallbacks'):
         customCallbacks = callbackLoader.get_callback_module(
             self.get_gain_callbacks_module_name())
         if customCallbacks != None:
             cbMap = defaultGainCallbacks.get_callback_map().copy()
             cbMap.update(customCallbacks.get_callback_map())
             self.gainCallbacks = cbMap
         else:
             self.gainCallbacks = defaultGainCallbacks.get_callback_map()
     return self.gainCallbacks
Exemplo n.º 4
0
 def get_probability_callbacks(self):
     if not hasattr(self, 'probabilityCallbacks'):
         customCallbacks = callbackLoader.get_callback_module(
             self.get_probability_callbacks_module_name())
         if customCallbacks is not None:
             cbMap = defaultProbabilityCallbacks.get_callback_map().copy()
             cbMap.update(customCallbacks.get_callback_map())
             self.probabilityCallbacks = cbMap
         else:
             self.probabilityCallbacks = defaultProbabilityCallbacks.get_callback_map()
     return self.probabilityCallbacks
Exemplo n.º 5
0
 def get_condition_callbacks(self):
     if not hasattr( self, 'conditionCallbacks' ):
         customCallbacks = callbackLoader.get_callback_module(
                     self.get_condition_callbacks_module_name() )
         if customCallbacks != None:
             cbMap = defaultConditionCallbacks.get_callback_map().copy()
             cbMap.update( customCallbacks.get_callback_map() )
             self.conditionCallbacks = cbMap
         else:
             self.conditionCallbacks = defaultConditionCallbacks.get_callback_map()
     return self.conditionCallbacks
Exemplo n.º 6
0
 def get_decays(self):
     if not hasattr( self, 'decays' ):
         customCallbacks = callbackLoader.get_callback_module(
                         self.get_decay_callbacks_module_name() )
         if customCallbacks != None:
             cbMap = defaultDecays.get_callback_map().copy()
             cbMap.update( customCallbacks.get_callback_map() )
             self.decays = cbMap
         else:
             self.decays = defaultDecays.get_callback_map()
     return self.decays
Exemplo n.º 7
0
 def get_probability_callbacks(self):
     if not hasattr(self, 'probabilityCallbacks'):
         customCallbacks = callbackLoader.get_callback_module(
             self.get_probability_callbacks_module_name())
         if customCallbacks is not None:
             cbMap = defaultProbabilityCallbacks.get_callback_map().copy()
             cbMap.update(customCallbacks.get_callback_map())
             self.probabilityCallbacks = cbMap
         else:
             self.probabilityCallbacks = defaultProbabilityCallbacks.get_callback_map(
             )
     return self.probabilityCallbacks