def symbolsUpdate(self, symbols): try: self.mutex.acquire() try: for symbol in symbols: internal = AGMModelConversion.fromIceToInternal_node(symbol) self.currentModel.nodes[internal.name] = copy.deepcopy(internal) except: print traceback.print_exc() print 'Executive::symbolsUpdate: There was some problem with update node' sys.exit(1) self.executiveTopic.symbolsUpdated(symbols) finally: self.mutex.release()
def symbolsUpdate(self, symbols): try: #print 'symbolsUpdate acquire() a' self.mutex.acquire() #print 'symbolsUpdate acquire() z' try: for symbol in symbols: internal = AGMModelConversion.fromIceToInternal_node(symbol) self.currentModel.nodes[internal.name] = copy.deepcopy(internal) except: print traceback.print_exc() print 'There was some problem with update node' sys.exit(1) self.executiveTopic.symbolsUpdated(symbols) finally: #print 'symbolsUpdate release() a' self.mutex.release()
def AGMExecutiveTopic_symbolsUpdated(self, modifications): for modification in modifications: AGMModelConversion.fromIceToInternal_node(modification)