Beispiel #1
0
 /// <summary> Method will evaluate a single slot from the left against the right.
 /// </summary>
 /// <param name="">left
 /// </param>
 /// <param name="">leftId
 /// </param>
 /// <param name="">right
 /// </param>
 /// <param name="">rightId
 /// </param>
 /// <returns>
 ///
 /// </returns>
 public virtual bool evaluate(IFact left, int leftId, IFact right, int rightId, int opr)
 {
     if (opr == Constants.NOTEQUAL)
     {
         return(Evaluate.evaluateNotEqual(left.getSlotValue(leftId), right.getSlotValue(rightId)));
     }
     else
     {
         return(Evaluate.evaluateEqual(left.getSlotValue(leftId), right.getSlotValue(rightId)));
     }
 }
Beispiel #2
0
 /// <summary> evaluate will extra the values from each side and evaluate it
 /// </summary>
 /// <param name="">left
 /// </param>
 /// <param name="">right
 /// </param>
 /// <returns>
 ///
 /// </returns>
 public virtual bool evaluate(IFact[] left, IFact right)
 {
     if (left[leftrow] == right)
     {
         return(false);
     }
     if (negated_Renamed_Field)
     {
         return(Evaluate.evaluateNotEqual(left[leftrow].getSlotValue(leftIndex), right.getSlotValue(rightIndex)));
     }
     else
     {
         return(Evaluate.evaluateEqual(left[leftrow].getSlotValue(leftIndex), right.getSlotValue(rightIndex)));
     }
 }