public AdaptableHeuristicFunction adaptToGoal(Object goal, Map map) { this.goal = goal; this.map = map; return this; }