Skip to content

Latest commit

 

History

History
130 lines (65 loc) · 6.3 KB

ARCHITECTURE.md

File metadata and controls

130 lines (65 loc) · 6.3 KB

Architecture Diagram

Iteration 3 Diagram

architecture3

Iteration 2 Diagram

architecture3

Iteration 1 Diagram

architecture

Presentation Layer

MainActivity

This file contains the UI layout that user enters TRIPTYPE, DEPATURE and ARRIVAL CITY, DATES OF TRAVEL, and the number of travllers either adults or children or both. Once enter also click SEARCH button.

RecFlightsActivity

This file open a new flight activity containing travellers flight options and adds ability to reserve a certain flight.

RecFlightsAdapter

This file provides an adapter to show the flights list view.

RecViewInterface

This file provides an interface for reservationForm.

ReservationFormActivity

This file open a new activity to show the flight information and then users can reserve the flight.

Business Logic Layer

AccessCityCode

This class is for getting the city name and code from the database.

FlightTable

This class is for getting a flight table.

FlightInfo

This class is to define what info is in the flight.

SearchHandler

This class is a handler for presentation layer to search flights with specific conditions.

ResInfo

This class is to get or save reservation information from or into the database.

ResSearchHandler

This class is a handler for presentation layer to search reservation with e-mail.

Application Layer

Services

This class is to deal with the persistence layer for AccessCityCode and SearchHandler.

Main

This class is to setup the database.

Persistence Layer

CityCodesStub

This class is to define a citycode array in the stub.

FlightsStub

This class is to define flights in the stub.

IHsqldbCityCodes

This class is to define an interface of searching city codes.

IHsqldbFlights

This class is to define an interface of searching flights.

IHsqldbReservations

This class is to define an interface of searching reservations.

HSQLDB

FlightPersistenceHSQLDB

This file is a DAO object to access flights from the database.

CityCodePersistenceHSQLDB

This file is a DAO object to access city codes from the database.

ReservationPersistenceHSQLDB

This file is a DAO object to access reservation from the database.

Domain Specific Objects

City

The city object.

CityCode

The citycode object.

Flight

The flight object.

Reservation

The reservation object.

Note

This diagram is subject to change as project evolves.