def prepareModel(modelClass=None, varList=[], dataCounterList=[], width=34,
    height=34, agentActivationPolicy='casual', cellActivationPolicy=
    'casual', bgcolor='#000000', modelInitFunc=None, wrapPolicy=None):
    """
    wrapPolicy有四种选择：
    'torus'(两方向绕转) 'box':xy边界均不可通过, 'vcylinder'：垂直回绕，水平不可通过,'hcylender'：水平回绕，垂直不可通过。
    """
    modelClass.varList = varList
    modelClass.dataCounters = dataCounterList
    modelClass.width = width
    modelClass.height = height
    modelClass.agentActivationPolicy = agentActivationPolicy
    modelClass.cellActivationPolicy = cellActivationPolicy
    modelClass.initAgents = modelInitFunc
    modelClass.wrapPolicy = wrapPolicy
    modelClass.bgColor = bgcolor
    return modelClass
