public AStarCostComputer < ? super ST , ? super PT > setCostComputer ( AStarCostComputer < ? super ST , ? super PT > costComputer ) { final AStarCostComputer < ? super ST , ? super PT > old = this . costComputer ; this . costComputer = costComputer ; return old ; }
Set the tool that permits to compute the costs of the nodes and the edges .