Пример #1
0
 protected override void notifyViewOfMetrics()
 {
     if (notifier != null)
     {
         ISet <string> keys = _search.getMetrics().keySet();
         foreach (string key in keys)
         {
             notifier.NotifyViews("METRIC[" + key + "]=" + _search.getMetrics().get(key));
         }
     }
 }
Пример #2
0
 protected void notifyViewOfMetrics()
 {
     if (notifier != null)
     {
         notifier.NotifyViews("Search metrics: " + _search.getMetrics());
     }
 }
Пример #3
0
        public SearchAgent(IProblem <S, A> p, ISearchForActions <S, A> search)
        {
            ICollection <A> actions = search.findActions(p);

            actionList = CollectionFactory.CreateQueue <A>();
            if (null != actions)
            {
                actionList.AddAll(actions);
            }

            //   actionIterator = actionList.iterator();
            searchMetrics = search.getMetrics();
        }