Ejemplo n.º 1
0
 public virtual void loadFunctions(Rete engine)
 {
     StringCompareFunction compare = new StringCompareFunction();
     engine.declareFunction(compare);
     funcs.Add(compare);
     StringIndexFunction indx = new StringIndexFunction();
     engine.declareFunction(indx);
     funcs.Add(indx);
     StringLengthFunction strlen = new StringLengthFunction();
     engine.declareFunction(strlen);
     funcs.Add(strlen);
     StringLowerFunction lower = new StringLowerFunction();
     engine.declareFunction(lower);
     funcs.Add(lower);
     StringReplaceFunction strrepl = new StringReplaceFunction();
     engine.declareFunction(strrepl);
     funcs.Add(strrepl);
     StringUpperFunction upper = new StringUpperFunction();
     engine.declareFunction(upper);
     funcs.Add(upper);
     SubStringFunction sub = new SubStringFunction();
     engine.declareFunction(sub);
     funcs.Add(sub);
     StringTrimFunction trim = new StringTrimFunction();
     engine.declareFunction(trim);
     funcs.Add(trim);
 }
Ejemplo n.º 2
0
        public virtual void loadFunctions(Rete engine)
        {
            StringCompareFunction compare = new StringCompareFunction();

            engine.declareFunction(compare);
            funcs.Add(compare);
            StringIndexFunction indx = new StringIndexFunction();

            engine.declareFunction(indx);
            funcs.Add(indx);
            StringLengthFunction strlen = new StringLengthFunction();

            engine.declareFunction(strlen);
            funcs.Add(strlen);
            StringLowerFunction lower = new StringLowerFunction();

            engine.declareFunction(lower);
            funcs.Add(lower);
            StringReplaceFunction strrepl = new StringReplaceFunction();

            engine.declareFunction(strrepl);
            funcs.Add(strrepl);
            StringUpperFunction upper = new StringUpperFunction();

            engine.declareFunction(upper);
            funcs.Add(upper);
            SubStringFunction sub = new SubStringFunction();

            engine.declareFunction(sub);
            funcs.Add(sub);
            StringTrimFunction trim = new StringTrimFunction();

            engine.declareFunction(trim);
            funcs.Add(trim);
        }