예제 #1
0
파일: Rule.cs 프로젝트: boriskos/DCF
 public Rule(RuleExecuterDelegate executer, RuleExecuterDelegate initializer, IRuleSupplier ruleSupplier)
     : this(ruleSupplier)
 {
     if (executer == null) throw new ArgumentNullException("executer");
     m_ruleExecuter += executer;
     if (initializer != null) m_ruleInitializer += initializer;
 }
예제 #2
0
 public TwoEstimate(MySqlUtils sqlUtils, IRuleSupplier ruleSupplier, string category)
     : base(sqlUtils, ruleSupplier, category)
 {
     m_ruleExecuter += new RuleExecuterDelegate(TwoEstimateMethod);
     m_ruleInitializer += new RuleExecuterDelegate(internalInit);
     Id = TwoEstimateStr;
 }
예제 #3
0
 public RepairKeySample(MySqlUtils sqlUtils, IRuleSupplier ruleSupplier, string category)
     : base(sqlUtils, ruleSupplier, category)
 {
     m_ruleExecuter += new RuleExecuterDelegate(SampleWithJoin);
     m_ruleInitializer += new RuleExecuterDelegate(internalInit);
     Id = "RepairKeySample";
     PrerequisiteRules = new List<DCF.Lib.Rule>();
 }
예제 #4
0
 public Majority(MySqlUtils sqlUtils, IRuleSupplier ruleSupplier, string category)
     : base(sqlUtils, ruleSupplier, category)
 {
     m_ruleInitializer += new RuleExecuterDelegate(internalInit);
     m_ruleExecuter += new RuleExecuterDelegate(MajorityFunc);
     Id = "MajorityRule";
     PrerequisiteRules = new List<Rule>(0);
 }
예제 #5
0
파일: Rule.Cosine.cs 프로젝트: boriskos/DCF
 public Cosine(MySqlUtils sqlUtils, IRuleSupplier ruleSupplier, string category)
     : base(sqlUtils, ruleSupplier, category)
 {
     m_ruleExecuter += new RuleExecuterDelegate(CosineMethod);
     m_ruleInitializer += new RuleExecuterDelegate(internalInit);
     Id = CosineStr;
     InvolvedTables = new List<string>(new string[] { TableConstants.UserScores });
     AffectedTables = new List<string>();
 }
예제 #6
0
 public MultipleAnswersSample(MySqlUtils sqlUtils, IRuleSupplier ruleSupplier, string category)
     : base(sqlUtils, ruleSupplier)
 {
     m_ruleExecuter += new RuleExecuterDelegate(SampleWithJoin);
     m_ruleInitializer += new RuleExecuterDelegate(internalInit);
     Id = "MultipleAnswersSample";
     InvolvedTables = new List<string>();
     AffectedTables = new List<string>();
     PrerequisiteRules = new List<DCF.Lib.Rule>();
     Category = category;
 }
예제 #7
0
 public XmlMySqlRule(MySqlUtils utils, IRuleSupplier ruleSupplier)
     : base(utils, ruleSupplier)
 {
     m_ruleExecuter += new RuleExecuterDelegate(XmlMySqlRuleExecuter);
     m_ruleInitializer += new RuleExecuterDelegate(XmlMySqlRuleInitializer);
 }
예제 #8
0
 public RuleTestMaxIteration(IRuleSupplier ruleSupplier)
     : base(ruleSupplier)
 {
     m_ruleExecuter += new RuleExecuterDelegate(RuleTestMaxIteration_m_ruleExecuter);
     this.Id = "RuleTestMaxIteration";
 }