def initialize (self, sadFile):
self.app_cnt = 0
if self.__timeout is not None:
self.domMgr.configure([CF.DataType('COMPONENT_BINDING_TIMEOUT', to_any(self.__timeout))])
try:
self.domMgr.installApplication(sadFile)
except CF.DomainManager.ApplicationAlreadyInstalled:
pass
domRoot = os.path.join(os.environ["SDRROOT"], "dom")
sad = ossie.parsers.sad.parse(domRoot + sadFile)
app_id = sad.get_id()
for appFact in self.domMgr._get_applicationFactories():
if appFact._get_identifier() == app_id:
self.appFact = appFact
return
raise KeyError, "Couldn't find app factory"
评论列表
文章目录