University-of-Washington-Navigator / src / main / java / pathfinder / textInterface / Pathfinder.java
Pathfinder.java
Raw
/*
 * Copyright ©2019 Hal Perkins.  All rights reserved.  Permission is
 * hereby granted to students registered for University of Washington
 * CSE 331 for use solely during Spring Quarter 2019 for purposes of
 * the course.  No other use, copying, distribution, or modification
 * is permitted without prior written consent. Copyrights for
 * third-party components of this work must be honored.  Instructors
 * interested in reusing these course materials should contact the
 * author.
 */

package pathfinder.textInterface;


import pathfinder.ModelConnector;
import pathfinder.datastructures.Point;

/**
 * Pathfinder represents a complete application capable of responding to user prompts to provide
 * a variety of information about campus buildings and paths between them.
 */
public class Pathfinder<E> {

  // This class does not represent an ADT.

  /**
   * The main entry point for this application. Initializes and launches the application.
   *
   * @param args The command-line arguments provided to the system.
   */
  public static void main(String[] args) {
    ModelConnector model = new ModelConnector();
    TextInterfaceView<Point> view = new TextInterfaceView<Point>();
    TextInterfaceController<Point> controller = new TextInterfaceController<Point>(model, view);
    //
    view.setInputHandler(controller);
    controller.launchApplication();
  }
}