/// <summary> /// LoadModel reloads the model from the model CONF file. Because the policy is /// attached to a model, so the policy is invalidated and needs to be reloaded by /// calling LoadPolicy(). /// calling LoadPolicy(). /// </summary> public void LoadModel() { model = NewModel(); model.LoadModel(this.modelPath); fm = FunctionMap.LoadFunctionMap(); InitializeInterpreter(); }
/// <summary> /// creates a model. /// </summary> /// <param name="modelPath">the path of the model file.</param> /// <param name="unused">unused parameter, just for differentiating with NewModel(String text).</param> /// <returns>the model.</returns> public static Model.Model NewModel(string modelPath, string unused) { Model.Model m = new Model.Model(); if (!string.IsNullOrEmpty(modelPath)) { m.LoadModel(modelPath); } return(m); }
/// <summary> /// LoadModel reloads the model from the model CONF file. Because the policy is /// attached to a model, so the policy is invalidated and needs to be reloaded by /// calling LoadPolicy(). /// calling LoadPolicy(). /// </summary> public void LoadModel() { model = NewModel(); model.LoadModel(this.modelPath); fm = FunctionMap.LoadFunctionMap(); }
/// <summary> /// LoadModel reloads the model from the model CONF file. Because the policy is /// Attached to a model, so the policy is invalidated and needs to be reloaded by /// calling LoadPolicy(). /// </summary> public void LoadModel() { model = NewModel(); model.LoadModel(modelPath); }
/// <summary> /// LoadModel reloads the model from the model CONF file. Because the policy is /// Attached to a model, so the policy is invalidated and needs to be reloaded by /// calling LoadPolicy(). /// </summary> public void LoadModel() { model = NewModel(); model.LoadModel(modelPath); functionMap = FunctionMap.LoadFunctionMap(); }