Beispiel #1
0
    def __init__(self, ID, parentID, name, opCount, linkType):

        TreeNode.__init__(self, ID, parentID, name)
        self.opCount = opCount[:]
        self.subTreeOpCount = opCount[:]
        self.label = self.name
        self.linkType = linkType
        self.extensionDict = [{} for i in range(OpTypeNum)]
 def __init__(self,
              ID,
              label,
              parent=None,
              children=None,
              is_root=False,
              tags=None,
              seq_of=None,
              seq=None):
     self._last_leaved_node_id = -1
     self._first_sequential = None
     TreeNode.__init__(self, ID, label, parent, children, is_root, tags,
                       seq_of, seq)
 def __init__(self,
              ID,
              label,
              min_duration=1,
              max_duration=sys.maxint,
              parent=None,
              children=None,
              is_root=False,
              tags=None,
              seq_of=None,
              seq=None):
     self._min_duration = min_duration
     self._max_duration = max_duration
     self._soft_tags = []
     TreeNode.__init__(self, ID, label, parent, children, is_root, tags,
                       seq_of, seq)
Beispiel #4
0
 def __init__(self, label, lHereDoc=None):
     TreeNode.__init__(self, label, lHereDoc)
Beispiel #5
0
 def __init__(self, name):
     TreeNode.__init__(self, name)
     self.nodeClass = 'Control'
     self.Children = []
Beispiel #6
0
 def __init__(self, name):
     TreeNode.__init__(self, name)
     self.nodeClass = 'Leaf'
	def __init__(self, userObject=None, childCount=-1):
		TreeNode.__init__(self, childCount)
		self.__userObject = userObject