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; }
public TwoEstimate(MySqlUtils sqlUtils, IRuleSupplier ruleSupplier, string category) : base(sqlUtils, ruleSupplier, category) { m_ruleExecuter += new RuleExecuterDelegate(TwoEstimateMethod); m_ruleInitializer += new RuleExecuterDelegate(internalInit); Id = TwoEstimateStr; }
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>(); }
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); }
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>(); }
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; }
public XmlMySqlRule(MySqlUtils utils, IRuleSupplier ruleSupplier) : base(utils, ruleSupplier) { m_ruleExecuter += new RuleExecuterDelegate(XmlMySqlRuleExecuter); m_ruleInitializer += new RuleExecuterDelegate(XmlMySqlRuleInitializer); }
public RuleTestMaxIteration(IRuleSupplier ruleSupplier) : base(ruleSupplier) { m_ruleExecuter += new RuleExecuterDelegate(RuleTestMaxIteration_m_ruleExecuter); this.Id = "RuleTestMaxIteration"; }