public InferenceResult Ask(object owner, IContextLookup globalVars) { var kb = KnowledgeBase.EvaluateTyped(owner, globalVars); var predicate = Predicate.GetValue(owner, globalVars); return(kb.ask(predicate)); }
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)); }