public void BuildSupplyPoint() { datalayer = PolicyDL.Instance; UsernameEqualsLeaf2 = new UsernameEquals(PolicyType.Global, "bla", "bla_bla", 1); UsernameEqualsLeaf = new UsernameEquals(PolicyType.Global, "bla", "bla_bla", 2); QuantityLessThanLeaf = new QuantityLessThan(PolicyType.Global, "bla", "bla_bla", 3); QuantityGreaterThanLeaf = new QuantityGreaterThan(PolicyType.Global, "bla", "bla_bla", 4); PriceLessThanLeaf = new PriceLessThan(PolicyType.Global, "bla", "bla_bla", 5); PriceGreaterThanLeaf = new PriceGreaterThan(PolicyType.Global, "bla", "bla_bla", 6); AddressEqualsLeaf = new AddressEquals(PolicyType.Global, "bla", "bla_bla", 7); }
public void BuildSupplyPoint() { MarketDB.Instance.InsertByForce(); datalayer = PolicyDL.Instance; UsernameEqualsLeaf2 = new UsernameEquals(PolicyType.Global, "bla", "bla_bla", 1); UsernameEqualsLeaf = new UsernameEquals(PolicyType.Global, "bla", "bla_bla", 2); QuantityLessThanLeaf = new QuantityLessThan(PolicyType.Global, "bla", "bla_bla", 3); QuantityGreaterThanLeaf = new QuantityGreaterThan(PolicyType.Global, "bla", "bla_bla", 4); PriceLessThanLeaf = new PriceLessThan(PolicyType.Global, "bla", "bla_bla", 5); PriceGreaterThanLeaf = new PriceGreaterThan(PolicyType.Global, "bla", "bla_bla", 6); AddressEqualsLeaf = new AddressEquals(PolicyType.Global, "bla", "bla_bla", 7); AndHas0opSun = new AndOperator(PolicyType.Global, "bla", PriceGreaterThanLeaf, PriceLessThanLeaf, 8); AndHas1opSun = new AndOperator(PolicyType.Global, "bla", AndHas0opSun, UsernameEqualsLeaf2, 9); OrHas0opSun = new OrOperator(PolicyType.Global, "bla", QuantityLessThanLeaf, QuantityGreaterThanLeaf, 10); OrHas1opSun = new OrOperator(PolicyType.Global, "bla", OrHas0opSun, UsernameEqualsLeaf, 11); NotHasCondSun = new NotOperator(PolicyType.Global, "bla", AddressEqualsLeaf, null, 12); NotHasopSun = new NotOperator(PolicyType.Global, "bla", NotHasCondSun, null, 13); OrHas2opSuns = new OrOperator(PolicyType.Global, "bla", AndHas1opSun, OrHas1opSun, 14); ROOT_AndHas2opSuns = new AndOperator(PolicyType.Global, "bla", OrHas2opSuns, NotHasopSun, 15); BadInputLeaf = new UsernameEquals(PolicyType.Global, "bla", "bla'bla", 1); }