<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package hws.hw10.app;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import javax.swing.SwingUtilities;

import hws.hw10.controller.FoneDroneController;
import hws.hw10.simulator.Drone;

/**
 * A driver for running FoneDroneController.
 *
 * @author CS159 Faculty
 * @version 04/28/2025
 */
public class FoneDrone {

    /**
     * The entry-point of the application.
     *
     * @param args The command line arguments (which are ignored)
     * @throws InterruptedException If something goes wrong with the GUI
     * @throws InvocationTargetException If something goes wrong with the GUI
     * @throws IOException If the data files cannot be read.
     */
    public static void main(String[] args) throws InterruptedException,
            InvocationTargetException, IOException {

        FoneDroneController controller;
        Drone drone;

        // weikle
        controller = new FoneDroneController("540-568-5013");
        drone = new Drone(controller, "familyroom.txt");
        controller.setDrone(drone);
        SwingUtilities.invokeAndWait(drone);

        // mayfield
        // controller = new FoneDroneController("540-568-3314");
        // drone = new Drone(controller, "firstfloor.txt");
        // controller.setDrone(drone);
        // SwingUtilities.invokeAndWait(drone);

        // shrestha
        // controller = new FoneDroneController("540-568-8175");
        // drone = new Drone(controller, "halls.txt");
        // controller.setDrone(drone);
        // SwingUtilities.invokeAndWait(drone);

        // duan
        // controller = new FoneDroneController("540-568-8013");
        // drone = new Drone(controller, "halls.txt");
        // controller.setDrone(drone);
        // SwingUtilities.invokeAndWait(drone);

        // chao
        // controller = new FoneDroneController("540-568-3325");
        // drone = new Drone(controller, "halls.txt");
        // controller.setDrone(drone);
        // SwingUtilities.invokeAndWait(drone);
    }

}
</pre></body></html>