def __init__(self, key, name, data_type, data_type_type):
    Node.__init__(self, NodeType.data_node, key)
    self.name = name
    self.data_type = data_type
    if ('DATA_VAR' == ProtoAcdfg.DataNode.DataType.Name(data_type_type)):
        self.data_type_type = DataNode.DATA_VAR
    elif ('DATA_CONST' == ProtoAcdfg.DataNode.DataType.Name(data_type_type)):
        self.data_type_type = DataNode.DATA_CONST
    else:
        logging.error(('Cannot determine the type %s for data node' % str(data_type_type)))
        raise Exception(('Cannot determine the type %s for data node' % str(data_type_type)))
    logging.debug(('DataNode: (%s,%s,%s,%s)' % (str(key), str(name), str(data_type), str(data_type_type))))
def __init__(self, key, name, data_type, data_type_type):
    Node.__init__(self, NodeType.data_node, key)
    self.name = name
    self.data_type = data_type
    if ('DATA_VAR' == ProtoAcdfg.DataNode.DataType.Name(data_type_type)):
        self.data_type_type = DataNode.DATA_VAR
    elif ('DATA_CONST' == ProtoAcdfg.DataNode.DataType.Name(data_type_type)):
        self.data_type_type = DataNode.DATA_CONST
    else:
        logging.error(('Cannot determine the type %s for data node' % str(data_type_type)))
        raise Exception(('Cannot determine the type %s for data node' % str(data_type_type)))
    logging.debug(('DataNode: (%s,%s,%s,%s)' % (str(key), str(name), str(data_type), str(data_type_type))))