Hi all
The following is my design for the assignment can you please give your views please
UserInterface:
FBNClient - Client Interface for Flight Information
FlightInformationManager -
* This Manager acts as a Facade to the system and has all major system operations as a method
* (eg. getFlightDetailsMatching(
String Criteria)
* This manager is a Factory aswell for creating connections based on client selection (Local or Remote)
Databeans:
SearchCriteriaBean -
* This Bean is used for holding the search Information and gives a easy Interface for creating a search Criteria method getSearchCriteria() returns a String with SearchCriteria
FlightInformationBean -
* This Bean is used for holding Flight Information and gives a easy Interface for retrieving specific information
* say getFlightID() will get the application the flight ID without iterating throught the Data Info record.
* Essentially a place hodler object for DataInfo
FlightInformationBeans -
* This Bean is used for holding a list of FlightInformationBean and gives a easy Interface for retrieving specific information from different FlightInformationBean say flight informationBean.getFlightID() will get the application the flight ID without iterating throught the Data Info record of the Bean.
BookingInformationBean -
* This Bean is used for holding Flight Booking Information
* i) No of Seats reqauired
* ii)Flight ID
SessionInformationBean -
* This Bean is used for holding the Session Information and gives a easy Interface for getting Connection
* This is a one place store for all the session related information, like Remote or Local connection etc..
Server:
ConnectionInterface
connect(),disconnect(), getConnection()
LocalConnection implements ConnectionInterface
connect() - returns a LocalConnection singleton instance
getConnection() - returns a LocalData (DataInterface)
RemoteConnection implements COnnectionInterface
connect - returns a RemoteConnection registry object
getConnection() - returns a RemoteData (DataInterface)
DataInterface (Wrapper for Data)
All public methods of Data
LocalData implements DataInterface
redirects all messages to Data instance
RemoteData implements DataInterface
redirects all messages to Lock Manager and Data Instance held in RemoteConnection
Database:
Data
DatabaseException
DataInfo
FieldInfo
Please can you all give your honest and humble opinion and ideas on this design please
Your help will be greatly appreciated
Farouk