* Returns the trivial zero function or a simple heuristic which is
* based on straight-line distance computation.
*/
@Override
protected AdaptableHeuristicFunction createHeuristic(int heuIdx) {
AdaptableHeuristicFunction ahf = null;
switch (heuIdx) {
case 0:
ahf = new H1();
break;
default:
ahf = new H2();
}
return ahf.adaptToGoal(destinations.get(0), scenario
.getAgentMap());
}