/// <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> /// creates a model. /// </summary> /// <returns></returns> public static Model NewModel() { Model.Model m = new Model.Model(); return(m); }
/// <summary> /// creates a model. /// </summary> /// <param name="text"></param> /// <returns></returns> public static Model NewModel(String text) { Model.Model m = new Model.Model(); m.LoadModelFromText(text); 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(). /// </summary> public void LoadModel() { model = NewModel(); model.LoadModel(modelPath); }
/// <summary> /// sets the current model. /// </summary> /// <param name="model"> the model.</param> public void SetModel(Model model) { this.model = model; fm = FunctionMap.LoadFunctionMap(); }
public static Model.Model NewModel() { var model = new Model.Model(); return(model); }
/// <summary> /// Sets the current model. /// </summary> /// <param name="model"></param> public void SetModel(Model.Model model) { this.model = model; ExpressionHandler = new ExpressionHandler(model); }
/// <summary> /// sets the current model. /// </summary> /// <param name="model"> the model.</param> public void SetModel(Model.Model model) { this.model = model; fm = FunctionMap.LoadFunctionMap(); InitializeInterpreter(); }
public Enforcer(Model.Model m) : this(m, null) { }
/// <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(); }