public void _RepairAnswer(string question, NodeReference suggestedAnswer, IEnumerable <NodeReference> context) { _repairAnswer.ReportParameter("question", question); _repairAnswer.ReportParameter("suggestedAnswer", suggestedAnswer); _repairAnswer.ReportParameter("context", context); _repairAnswer.SaveReport(); repairAnswer(question, suggestedAnswer, context); }
private bool _AdviceAnswer(string question, bool isBasedOnContext, NodeReference correctAnswerNode, IEnumerable <NodeReference> context) { _adviceAnswer.ReportParameter("question", question); _adviceAnswer.ReportParameter("isBasedOnContext", isBasedOnContext); _adviceAnswer.ReportParameter("correctAnswerNode", correctAnswerNode); _adviceAnswer.ReportParameter("context", context); _adviceAnswer.SaveReport(); return(adviceAnswer(question, isBasedOnContext, correctAnswerNode, context)); }
public void SetEquivalence(string patternQuestion, string queriedQuestion, bool isEquivalent) { lock (_L_input) { _setEquivalencies.ReportParameter("patternQuestion", patternQuestion); _setEquivalencies.ReportParameter("queriedQuestion", queriedQuestion); _setEquivalencies.ReportParameter("isEquivalent", isEquivalent); _setEquivalencies.SaveReport(); setEquivalence(patternQuestion, queriedQuestion, isEquivalent); } }
private void reportCompletition() { if (!HasTask) { //nothing to report return; } _completitionCall.ReportParameter("success_code", _task.SuccessCode); _completitionCall.ReportParameter("task", _task.Key); _completitionCall.ReportParameter("format", _task.TaskFormat); _completitionCall.ReportParameter("substitutions", _task.Substitutions); _completitionCall.SaveReport(); }
public void Negate(string question) { lock (_L_input) { _negate.ReportParameter("question", question); _negate.SaveReport(); negate(question); } }
internal void LogMessage(string message) { _infoCall.ReportParameter("message", message); _infoCall.SaveReport(); }