Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 /// <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();
 }