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)
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
def stop(self): PeriodicDriver.stop(self) CompositeNode.stop(self)
def start(self): self._output_cnt = len(self.outputs) PeriodicDriver.start(self) CompositeNode.start(self)
def __init__(self, *args): CompositeNode.__init__(self, *args) PeriodicDriver.__init__(self) self.outputs = [] self._resolved = [] self._unresolved = []
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