Пример #1
0
 def __init__(self, treeInst, mytree, parent):
     #call to super constracture
     node.__init__(self, treeInst, mytree, "bool", parent)
     treeInst.tag = "bool"
     if treeInst.get("name") == "T":
         self.boolP = "True"
     else:
         self.boolP = "False"
Пример #2
0
 def __init__(self,treeInst,mytree,parent):
     #call to super constracture
     node.__init__(self,treeInst,mytree,"not",parent)
Пример #3
0
 def __init__(self, treeInst, mytree, parent):
     #tsk id is it's name
     self.Id = treeInst.get("name")
     #call to super-condstracture
     node.__init__(self, treeInst, mytree, "tsk", parent)
Пример #4
0
 def __init__(self,treeInst,mytree,parent):
     #call to super constracture
     node.__init__(self,treeInst,mytree,"par",parent)
Пример #5
0
 def __init__(self,treeInst,mytree,parent):
     #call to super-condstracture
     node.__init__(self,treeInst,mytree,"tsk",parent)
     #upsate distributions from xml file
     self.distTableSucc = self.createDistTable("Successdistribution")
     self.distTableFail = self.createDistTable("Failuredistribution")