Class GetFullSchedule
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.ScheduleLoadDAO
org.deltava.dao.file.GetFullSchedule
A Data Access Object to load CSV-format flight schedules from Innovata LLC.
- Since:
- 1.0
- Version:
- 12.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.dao.file.ScheduleLoadDAO
ScheduleLoadDAO.FlightData -
Field Summary
Fields inherited from class org.deltava.dao.file.ScheduleLoadDAO
_airlines, _status, GROUND_EQ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess()Loads the Schedule Entries.voidsetAirlines(Collection<Airline> airlines) Initializes the list of airlines.voidsetCodeshareCodes(Collection<String> codes) Sets code share airline codes.voidsetMainlineCodes(Collection<String> codes) Sets main line airline codes.Methods inherited from class org.deltava.dao.file.ScheduleLoadDAO
getEquipmentType, getStatus, setAircraftMethods inherited from class org.deltava.dao.file.DAO
getReader, getStream, setBufferSize
-
Constructor Details
-
GetFullSchedule
Initializes the Data Access Object.- Parameters:
is- the input stream to read
-
-
Method Details
-
setAirlines
Initializes the list of airlines.- Overrides:
setAirlinesin classScheduleLoadDAO- Parameters:
airlines- a Collection of Airline beans- See Also:
-
setMainlineCodes
Sets main line airline codes. These will automatically be included, and by default code shares of flights with these codes will be included.- Parameters:
codes- the main line airline codes- See Also:
-
process
Loads the Schedule Entries.- Specified by:
processin classScheduleLoadDAO- Returns:
- a Collection of RawScheduleEntry beans
- Throws:
DAOException- if an I/O error occurs
-
parse
-