edu.mit.ll.group43.surfaceoptimization.input
Class TextFCFSReader

java.lang.Object
  extended by edu.mit.ll.group43.surfaceoptimization.input.TextFCFSReader
All Implemented Interfaces:
FCFSReader

public class TextFCFSReader
extends java.lang.Object
implements FCFSReader

Reads aircraft data in from a plain-text file.

Author:
William Hawkins

Constructor Summary
TextFCFSReader(java.lang.String filename)
           
 
Method Summary
 Aircraft nextAircraft()
          Creates an Aircraft from the next line in the input file and returns it, or returns null if the end of the file has been reached.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFCFSReader

public TextFCFSReader(java.lang.String filename)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

nextAircraft

public Aircraft nextAircraft()
Creates an Aircraft from the next line in the input file and returns it, or returns null if the end of the file has been reached.

Specified by:
nextAircraft in interface FCFSReader
Returns: