Пример #1
0
 private void FinishSequenceAnalyze()
 {
     if (_usefullness > 0 && _lastSearchRequest != null && _lastSearchRequest.IsValid())
     {
         double weight = 1.0 - _usefullness;
         if (weight > MaxWeight)
         {
             weight = MaxWeight;
         }
         _result.Add(new Tuple <SearchRequest, double>(_lastSearchRequest, weight));
     }
     StartAgain();
 }
 public bool ValidateParameters(SearchRequest request)
 {
     return(request.IsValid());
 }