Пример #1
0
            public void ExamineTraversalInfo(TraversalNodeInfo traversalNodeInfo)
            {
                _currentTraversalNodeInfo = traversalNodeInfo;

                if (traversalNodeInfo.ParentNode != null)
                {
                    _previousNodeInPath[traversalNodeInfo.CurrentNode.Key] = traversalNodeInfo.ParentNode.Key;

                    if (_targetNode != null && _currentTraversalNodeInfo.CurrentNode.Key == _targetNode.Key)
                    {
                        UpdateFlowCosts();
                        _hasDiscoveredDestination = true;
                    }
                }
            }
 public void ExamineTraversalInfo(TraversalNodeInfo traversalNodeInfo)
 {
     _currentTraversalNodeInfo = traversalNodeInfo;
 }
Пример #3
0
 public void ExamineTraversalInfo(TraversalNodeInfo traversalNodeInfo)
 {
     if (_searchPredicate(traversalNodeInfo.CurrentNode.Data))
         _results.Add(traversalNodeInfo.CurrentNode);
 }