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

class OverlayJoinReplyMsg(object):
    '''
    classdocs
    '''


    def __init__(self, zone, splitZoneUsing, neighbors):
        '''
        Constructor
        @param zone: New zone
        @param splitZoneUsing: How to split next zone 
        @param neighbors: Current list of neighbors  
        '''
        self.msgType = 'OvJoinReply' #Message type
        self.zone = zone
        self.splitZoneUsing  = splitZoneUsing
        self.nbrs = neighbors
        #2 * 8 (corner for zone) + 1 for split axis + neighbors. NID 4 bytes
        self.size = float((28 + len(neighbors) * 28) * 8)