Package aima.core.environment.map

Examples of aima.core.environment.map.AdaptableHeuristicFunction


     * 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());
    }
View Full Code Here


  /**
   * Returns the trivial zero function or a simple heuristic which is
   * based on straight-line distance computation.
   */
  protected AdaptableHeuristicFunction createHeuristic(int heuIdx) {
    AdaptableHeuristicFunction ahf = null;
    switch (heuIdx) {
    case 0:
      ahf = new H1();
      break;
    default:
View Full Code Here

TOP

Related Classes of aima.core.environment.map.AdaptableHeuristicFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.