コード例 #1
0
 public AStar()
 {
     FOpenList = new Heap();
     FClosedList = new Heap();
     FSuccessors = new ArrayList();
     FSolution = new ArrayList();
 }
コード例 #2
0
ファイル: Heap.cs プロジェクト: EnricoNirvana/WhiteCore-Dev
 /// <summary>
 ///     ICloneable implementation.
 ///     Idem <see cref="ArrayList">ArrayList</see>
 /// </summary>
 /// <returns>Cloned object.</returns>
 public object Clone()
 {
     Heap newClone = new Heap(FComparer, FList.Capacity)
                      {FList = (ArrayList) FList.Clone(), FAddDuplicates = FAddDuplicates};
     return newClone;
 }