示例#1
0
    /**
     * Default constructor
     *
     * @param id
     *            Id of the rule
     * @param importance
     *            Importance of the rule
     */

    public AssessmentRule(string id, int importance, bool repeatRule)
    {
        this.id         = id;
        this.importance = importance;
        concept         = null;
        conditions      = new Conditions();
        effect          = new AssessmentEffect();
        this.repeatRule = repeatRule;
    }
    public virtual object Clone()
    {
        AssessmentEffect ae = (AssessmentEffect)this.MemberwiseClone();

        if (properties != null)
        {
            ae.properties = new List <AssessmentProperty>();
            foreach (AssessmentProperty ap in properties)
            {
                ae.properties.Add((AssessmentProperty)ap.Clone());
            }
        }
        ae.text = (text != null ? text : null);
        return(ae);
    }
 /**
  * Default constructor
  *
  * @param id
  *            Id of the rule
  * @param importance
  *            Importance of the rule
  */
 public AssessmentRule(string id, int importance, bool repeatRule)
 {
     this.id = id;
     this.importance = importance;
     concept = null;
     conditions = new Conditions();
     effect = new AssessmentEffect();
     this.repeatRule = repeatRule;
 }