예제 #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)