Package search

Class Nodes.CostAndStep<S>

java.lang.Object
search.Nodes.CostAndStep<S>
Enclosing class:
Nodes

public static class Nodes.CostAndStep<S>
extends Object
Helper class for search tree node expansion bundling a node and its associated cost.
  • Constructor Details

    • CostAndStep

      public CostAndStep​(double cost, S state)
      Parameters:
      cost - Returns the cost associated with moving from the local origin state to state. Other plumbing adds this cost to the overall origin, and deals with the estimate of moving from state to the overall goal.
  • Method Details