def terminate(self):
"""
Terminate the Domain including the Node(s).
"""
if not self.NodeAlive:
return
# uninstall waveforms
if self.Waveforms != {}:
for waveform_name in self.Waveforms:
#waveform = self.Waveforms.pop(waveform_name)
waveform = self.Waveforms[waveform_name]
waveform.app.releaseObject()
self.Waveforms = {}
# uninstall devices
for device_entry in self.Devices:
if device_entry.reference != None:
device_entry.reference.releaseObject()
# clean up the node
os.system('pkill nodeBooter')
self.NodeAlive = False
dmn_ctx = [CosNaming.NameComponent(self.name,"")]
self.rootContext.unbind(dmn_ctx)
评论列表
文章目录