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

class OverlayUpdateMsg(object):
    '''
    Overlay remove neighbor message
    '''


    def __init__(self, msgType, NID, loc, zone, appType):
        '''
        Constructor
        @param msgType: Message type
        @param NID: Node ID 
        @param loc: Location of sender
        @param zone: Zone of sender
        @param appType: Application layer type  
        '''
        self.msgType = msgType
        self.NID = NID
        self.loc = loc
        self.nodeType = appType
        self.zone = zone  
        self.size = float(224 + len(msgType) * 8) #28 * 8