Пример #1
0
 def configure(self, config):
     CompositeNode.configure(self, config)
     outputs = config.get('outputs', self.outputs)
     self.outputs = filter(None, outputs)
     if not self.has_child('Fan Out'):
         multiplexor = self.nodespace.create_node(MultiPlexor)
         multiplexor.configure({'name': 'Fan Out', 'parent': self})
     multiplexor = self.get_child('Fan Out')
     multiplexor.configure({'nodes': self.outputs})
     config['output'] = multiplexor
     PeriodicDriver.configure(self, config)
Пример #2
0
 def configuration(self):
     config = PeriodicDriver.configuration(self)
     config.update(CompositeNode.configuration(self))
     if config.has_key('output'):
         del(config['output'])
     outputs = self.outputs[:]
     while len(outputs) < 10:
         outputs.append('')
     config['outputs'] = outputs
     return config
Пример #3
0
 def stop(self):
     PeriodicDriver.stop(self)
     CompositeNode.stop(self)
Пример #4
0
 def start(self):
     self._output_cnt = len(self.outputs)
     PeriodicDriver.start(self)
     CompositeNode.start(self)
Пример #5
0
 def __init__(self, *args):
     CompositeNode.__init__(self, *args)
     PeriodicDriver.__init__(self)
     self.outputs = []
     self._resolved = []
     self._unresolved = []
Пример #6
0
 def __init__(self):
     _deprecated("The mpx.lib.translator.periodicdriver.PeriodicDriver " +
                 "factory has been deprecated, please upgrade to use " +
                 "mpx.lib.driver.PeriodicDriver.")
     _PeriodicDriver.__init__(self)
     return
Пример #7
0
 def __init__(self):
     _deprecated("The mpx.lib.translator.periodicdriver.PeriodicDriver " +
                 "factory has been deprecated, please upgrade to use " +
                 "mpx.lib.driver.PeriodicDriver.")
     _PeriodicDriver.__init__(self)
     return