/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> /// <returns></returns> private IEvidence evidence_EvidenceLookup(object sender, EvidenceLookupArgs args) { try { return(evidenceCollection[args.Key]); } catch (Exception e) { throw new Exception("Could not find evidence: " + args.Key, e); } }
private IEvidence EvidenceLookup(object sender, EvidenceLookupArgs args) { if (args.Key == "f1") { return f1; } else if (args.Key == "f2") { return f2; } else if (args.Key == "a1") { return a1; } else if (args.Key == "a2") { return a2; } else if (args.Key == "r1") { return r1; } else if (args.Key == "r2") { return r2; } else throw new Exception("Unknown evidence"); }
public IEvidence EvidenceLookup(object source, EvidenceLookupArgs args) { return null; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="args"></param> /// <returns></returns> private IEvidence evidence_EvidenceLookup(object sender, EvidenceLookupArgs args) { try { return evidenceCollection[args.Key]; } catch (Exception e) { throw new Exception("Could not find evidence: " + args.Key, e); } }