Esempio n. 1
0
    def copy(self, g):
        """ Copy the contents to the destination g

        :param g: the GTreeNode genome destination
        """
        GTreeNodeBase.copy(self, g)
        g.node_data = self.node_data
Esempio n. 2
0
    def copy(self, g):
        """ Copy the contents to the destination g

        :param g: the GTreeNode genome destination
        """
        GTreeNodeBase.copy(self, g)
        g.node_data = self.node_data
Esempio n. 3
0
 def copy(self, g):
    """ Copy the contents to the destination g
    
    :param g: the GTreeNodeGP genome destination
    """
    GTreeNodeBase.copy(self, g)
    g.node_data = self.node_data
    g.node_type = self.node_type
    g.out_type = self.out_type
    g.in_type = self.in_type
Esempio n. 4
0
 def __repr__(self):
     str_repr = GTreeNodeBase.__repr__(self)
     str_repr += " - [%s]" % self.node_data
     return str_repr
Esempio n. 5
0
 def __init__(self, data, node_type=0, parent=None):
     GTreeNodeBase.__init__(self, parent)
     self.node_type = node_type
     self.node_data = data
Esempio n. 6
0
 def __repr__(self):
    str_repr  = GTreeNodeBase.__repr__(self)
    str_repr += " - [%s]" % self.node_data
    return str_repr     
Esempio n. 7
0
 def __init__(self, data, node_type=0, parent=None):
    GTreeNodeBase.__init__(self, parent)
    self.node_type = node_type
    self.node_data = data