Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 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");
 }
Пример #3
0
 public IEvidence EvidenceLookup(object source, EvidenceLookupArgs args)
 {
     return null;
 }
Пример #4
0
 /// <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);
     }
 }