示例#1
0
        public virtual void loadFunctions(Rete engine)
        {
            NotFunction not = new NotFunction();
            engine.declareFunction(not);
            funcs.Add(not);

            TrueFunction trueFunc = new TrueFunction();
            engine.declareFunction(trueFunc);
            funcs.Add(trueFunc);

            FalseFunction falseFunc = new FalseFunction();
            engine.declareFunction(falseFunc);
            funcs.Add(falseFunc);
        }
示例#2
0
        public virtual void loadFunctions(Rete engine)
        {
            NotFunction not = new NotFunction();

            engine.declareFunction(not);
            funcs.Add(not);

            TrueFunction trueFunc = new TrueFunction();

            engine.declareFunction(trueFunc);
            funcs.Add(trueFunc);

            FalseFunction falseFunc = new FalseFunction();

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