示例#1
0
        public InferenceResult Ask(object owner, IContextLookup globalVars)
        {
            var kb        = KnowledgeBase.EvaluateTyped(owner, globalVars);
            var predicate = Predicate.GetValue(owner, globalVars);

            return(kb.ask(predicate));
        }
示例#2
0
        public bool Ask(object owner, IContextLookup globalVars)
        {
            var kb           = KnowledgeBase.EvaluateTyped(owner, globalVars);
            var predicate    = Predicate.GetValue(owner, globalVars);
            var objInferProc = Procedure.EvaluateTyped(owner, globalVars);

            return(objInferProc.Ask(kb, predicate));
        }