Exemple #1
0
 public void AddToOpen(NodeRecord nodeRecord)
 {
     this.Open.AddToOpen(nodeRecord);
     nodeRecord.status = NodeStatus.Open;
 }
 public void RemoveFromClosed(NodeRecord nodeRecord)
 {
     dictionary.Remove(nodeRecord.node);
 }
 public void RemoveFromOpen(NodeRecord nodeRecord)
 {
     //TODO implement
     throw new NotImplementedException();
 }
 public void RemoveFromClosed(NodeRecord nodeRecord)
 {
     this.NodeRecords.Remove(nodeRecord.GetHashCode());
 }
 public void RemoveFromOpen(NodeRecord nodeRecord)
 {
     this.Open.Remove(nodeRecord);
 }
Exemple #6
0
 public NodeRecord SearchInOpen(NodeRecord nodeRecord)
 {
     return(this.OpenHeap.SearchForEqual(nodeRecord));
 }
Exemple #7
0
 public void RemoveFromClosed(NodeRecord nodeRecord)
 {
     this.NodeRecords.Remove(nodeRecord);
 }
Exemple #8
0
 public void RemoveFromClosed(NodeRecord nodeRecord)
 {
     this.NodeRecords[nodeRecord.node.NodeIndex].status = NodeStatus.Open;
 }
Exemple #9
0
 public void AddToOpen(NodeRecord nodeRecord)
 {
     this.Open.AddToOpen(nodeRecord);
     this.NodeRecords[nodeRecord.node.NodeIndex].status = NodeStatus.Open;
 }
Exemple #10
0
 public void Replace(NodeRecord nodeToBeReplaced, NodeRecord nodeToReplace)
 {
     this.Open.Replace(nodeToBeReplaced, nodeToReplace);
 }
Exemple #11
0
 public void RemoveFromOpen(NodeRecord nodeRecord)
 {
     this.NodeRecords[nodeRecord.node.NodeIndex].status = NodeStatus.Closed;
     this.Open.RemoveFromOpen(nodeRecord);
 }
Exemple #12
0
 public NodeRecord SearchInClosed(NodeRecord nodeRecord)
 {
     return(nodeRecord.status == NodeStatus.Closed ? nodeRecord : null);
 }
Exemple #13
0
 public NodeRecord SearchInOpen(NodeRecord nodeRecord)
 {
     return(this.Open.SearchInOpen(nodeRecord));
 }
Exemple #14
0
 public void AddToClosed(NodeRecord nodeRecord)
 {
     nodeRecord.status = NodeStatus.Closed;
 }
Exemple #15
0
 public void Replace(NodeRecord nodeToBeReplaced, NodeRecord nodeToReplace)
 {
     this.OpenHeap.Remove(nodeToBeReplaced);
     this.OpenHeap.Enqueue(nodeToReplace);
 }
Exemple #16
0
 public void AddToClosed(NodeRecord nodeRecord)
 {
     this.NodeRecords[nodeRecord.node.NodeIndex].status = NodeStatus.Closed;
 }
Exemple #17
0
 public void AddToOpen(NodeRecord nodeRecord)
 {
     this.OpenHeap.Enqueue(nodeRecord);
 }
Exemple #18
0
 public void RemoveFromOpen(NodeRecord nodeRecord)
 {
     //TODO implement
     this.Open.RemoveFromOpen(nodeRecord);
 }
Exemple #19
0
 public void AddToClosed(NodeRecord nodeRecord)
 {
     this.NodeRecords.Add(nodeRecord, nodeRecord);
 }
Exemple #20
0
 public void RemoveFromClosed(NodeRecord nodeRecord)
 {
     //TODO implement
     nodeRecord.status = NodeStatus.Open;
 }
 public void AddToClosed(NodeRecord nodeRecord)
 {
     this.NodeRecords.Add(nodeRecord.GetHashCode(), nodeRecord);
 }
Exemple #22
0
 public void AddSpecialCaseNode(NodeRecord node)
 {
     this.SpecialCaseNodes.Add(node);
 }
 public NodeRecord SearchInClosed(NodeRecord nodeRecord)
 {
     return(this.NodeRecords[nodeRecord.GetHashCode()]);
 }
Exemple #24
0
 public void AddToOpen(NodeRecord nodeRecord)
 {
     //TODO implement
     nodeRecord.status = NodeStatus.Open;
     this.Open.AddToOpen(nodeRecord);
 }
 public void AddToClosed(NodeRecord nodeRecord)
 {
     dictionary.Add(nodeRecord.node, nodeRecord);
 }
Exemple #26
0
 public void AddToClosed(NodeRecord nodeRecord)
 {
     //TODO implement
     nodeRecord.status = NodeStatus.Closed;
 }
 public void Replace(NodeRecord nodeToBeReplaced, NodeRecord nodeToReplace)
 {
     RemoveFromOpen(nodeToBeReplaced);
     AddToOpen(nodeToReplace);
 }
Exemple #28
0
 public NodeRecord SearchInOpen(NodeRecord nodeRecord)
 {
     //TODO implement
     return(this.Open.SearchInOpen(nodeRecord));
 }
 public NodeRecord SearchInOpen(NodeRecord nodeRecord)
 {
     //TODO implement
     throw new NotImplementedException();
 }
Exemple #30
0
 public void RemoveFromClosed(NodeRecord nodeRecord)
 {
     nodeRecord.status = NodeStatus.Unvisited;
 }