'''
Created on Jul 24, 2011
@author: Dilum Bandara
@contact: dilumb@engr.colostate.edu
@version: 0.1
@copyright: Copyright(c) 2011, Dilum Bandara
@license: GPL
'''

class TreeNode(object):
    '''
    classdocs
    '''


    def __init__(self, id, value, parent = None):
        '''
        Constructor
        @param id: Node ID 
        @param value: Node value
        @param parent: Parent Node ID. Root node doesn't have a parent  
        '''
        self.id = id
        self.value = value
        self.parent = parent
        self.children = []