예제 #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);
     }
 }