コード例 #1
0
 public FollowPathHeuristic(
     IFilteredIndexPicker filteredIndexPicker,
     TilePropagator propagator,
     EdgedPathSpec edgedPathSpec)
 {
     this.filteredIndexPicker = filteredIndexPicker;
     this.propagator          = propagator;
     this.edgedPathSpec       = edgedPathSpec;
 }
コード例 #2
0
 internal IIndexPicker GetHeuristic(
     IFilteredIndexPicker filteredIndexPicker,
     TilePropagator propagator)
 {
     if (PathSpec is EdgedPathSpec eps)
     {
         return(new FollowPathHeuristic(
                    filteredIndexPicker, propagator, eps));
     }
     else
     {
         throw new NotImplementedException();
     }
 }
コード例 #3
0
 public DirtyIndexPicker(IFilteredIndexPicker filteredIndexPicker, ITopoArray <int> cleanPatterns)
 {
     dirtyIndices             = new HashSet <int>();
     this.filteredIndexPicker = filteredIndexPicker;
     this.cleanPatterns       = cleanPatterns;
 }