jdalbey

Fireroute Finder Skeleton

Feb 28th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.14 KB | None | 0 0
  1. /**
  2.  * FireRouteFinder solves the Firetruck dispatch problem.
  3.  * @author your name here
  4.  */
  5. public class FireRouteFinder
  6. {
  7.     /** The name of the file to which output from the main method will be written. */
  8.     public static final String kOutputFilename = "fireroutes.txt";
  9.    
  10.     /**
  11.      * A driver for the FireRouteFinder that accepts input
  12.      * from a user-specified file and writes the results to <code>kOutputFilename</code>
  13.      * If no arguments are provided, the program terminates.
  14.      * @param args The first argument is the name of
  15.      * a file in the same directory as the program that contains the
  16.      * user input data.  
  17.      * @throws IOException if an illegal IO operation is attempted.
  18.      */
  19.     public static void main(String[] args) throws IOException
  20.    /** Find all the routes from the fire station to the fire.
  21.      * @param rdr a Reader for the input data, in the required format
  22.      * @return List the paths that were found, in alphabetical order.
  23.      * @pre destination exists in input and destination > 1
  24.      * @pre maximum number of paths is 99.
  25.      */
  26.     public List<String> findRoutes(Reader rdr)
Advertisement
Add Comment
Please, Sign In to add comment