0% found this document useful (0 votes)
3 views1 page

Air Line Reservation System UML

The document outlines the functionalities of a flight scheduling system, including methods for scheduling flights, adding customers, calculating flight times and distances, and managing customer registrations. It describes various classes such as Customer, Flight, and FlightReservation, detailing their attributes and methods for handling user data and flight operations. Additionally, it includes instructions for distance measurement and user management within the system.

Uploaded by

Smit Mehta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Air Line Reservation System UML

The document outlines the functionalities of a flight scheduling system, including methods for scheduling flights, adding customers, calculating flight times and distances, and managing customer registrations. It describes various classes such as Customer, Flight, and FlightReservation, detailing their attributes and methods for handling user data and flight operations. Additionally, it includes instructions for distance measurement and user management within the system.

Uploaded by

Smit Mehta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

• flightScheduler() will schedule required number of flights e.g.

10, 20 randomly.
• addCustomerToFlight() will add the customer to the current
flight customers list.
• calculateFlightTime() calculates the flight time or the time
airplane was in travel. • isUniqueData() returns true if the entered
• fetchArrivalTime() calculates the date time when the airplane userName or email already exists in the list.
touches the ground. • addFlightToCustomerList() will associate
• deleteFlight() will delete the flight listed in the flight that flight with the current customer
schedule.(Only Admin can do)
• calculateDistance() calculates the distance between the
airports of source and destination(selected randomly from the
2D array) cities in Miles and Kilometers.
• distanceMeasurementInstructions() displays some common
instructions, how the flight time is calculated, when to reach at
airport etc... Customer
• displayFlightSchedule() displays the generated flight shcedule. RandomGenerator
Flight schedule changes every time the program runs - userID:String
- name:String
• createNewFlightsAndTime() generates new flight with its - email:String
- randomNum:String
- destinations:String[][]
required attributes and then it calls the - password:String
getNearestHourQuarter() method to round off the minutes to - address:String
customer has an ID
- phone:String
the nearest quarter of the hour... - age:int - randomIDGen():String
- flightsRegisteredByUser:List<Flight> - randomDestinations():String[][]
- numOfTIcketsBookedByUser:List<Integer> - randomNumOfSeats():int
- customerCollection:List<Customer> - randomFlightNumGen(int, int):String

+ Customer()
+ Customer(String, String, String, String, String, int )
+ addNewCustomer():void
+ isUniqueData(String, String):boolean
User
+ editUserInfo(String):void
+ deleteUser(String):void
+ searchUser(String):void adminUserNameAndPassword:String[][]
+ toString(int):String customersCollection:List<Customer>
+ addNewFlightToCustomerList(Flight):void
+ addExistingFlightToCustomerList(int, int):void can be
+ displayCustomersData():void + displayMainMenu():void
Flight has flight
+ displayHeader():void + mannualInstructions():void
+ randomIDDisplay():String + welcomScreen(int):void
- flightSchedule:String + displayArtWork():void + printArtWork(int):void
- flightNumber:String + settersAndGetters():<respectiveReturnTypes> + getCustomersCollection():List<Customer>
- fromWhichCity:String
- gate:String
- toWhichCity:String
1...*
- distanceInMiles:double is user registered
- distanceInKm:double
- flightTime:String
- numOfSeatsInTheFlight:int
- listOfRegisteredCustomersInTheFlight:List<Customer> has registered RolesAndPermissions
- customerIndex:int
- flightList:List<Flight>
- nextFlightDay:int
+ isPrivilligedUserOrNot(String, String):int
+ isPassengerRegistered(String, String):String
+ Flight()
0...*
+ Flight(String, String, int, String[][], String[], String) FlightReservation
+ flightScheduler():void
+ addNewCustomerToFlight(Customer):void
+ addTicketsToExistingCustomer(Customer, int):void - c1:Customer <<Interface>>
+ isCustomerAlreadyRegistered(List<Customer>, Customer):boolean - flight:Flight DisplayClass
+ calculateFlightTime(double):String - flightIndexInFlightList:int
+ fetchArrivalTime():String + displayRegisteredUsersForAllFlights():void
+ deleteFlight():void + displayRegisteredUsersForASpecificFlight():void
+ calculateDistance(double, double, double, double):String[] + FlightReservation() + displayHeaderForUsers():void
+ radianToDegree():double + FlightReservation(FlightReservation) + displayFlightsRegisteredByOneUser():void
+ degreeToRadian(double):double + bookFlight(String, int, String):void + displayArtWork():void
+ displayFlightSchedule():void + cancelFlight(String, String):void
+ toString(int):String + addNumberOfTicketsToExistingBookedFlight(Customer, int):void
+ createNewFlightsAndTime():String + addNumberOfTicketsForNewFlight(Customer, int):void
+ getNearestHourQuarter(LocalDateTime):LocalDateTime + addNumberOfTicketsToUser(List<Flight>, Flight, Customer, int):void
+ settersAndGetters():<respectiveReturnTypes> + isFlightAlreadyAddedToCustomerList(List<Flight>,Flight):boolean • bookFlight() books the user in that flight..
+ flightStatus():boolean • cancelFlight() cancels the registeration of the user in
+ equals():boolean that flight
+ toString(int, Flight, Customer):String • flightStatus() will check if the flight is on schedule or
+ flightIndex(List<Flight>, Flight):int has been cancelled.
+ displayFlightsRegisteredByOneUser(String):void • isFlightAlreadyAddedToCustomer() will check if the
+ toString(int, Customer):String
current flight is already assoicaited with the user or
+ displayHeaderForUsers(Flight, List<Customer>):void
<<abstract>> not.
+ displayRegisteredUsersForAllFlights():void
FlightDistance
+ displayRegisteredUsersForASpecificFlight(String):void • displayFlightsRegisteredByOneUser() will display all
+ displayArtWork(int):void flights registered by a user.
+ settersAndGetters():<respectiveReturnType> • displayRegisteredUsersForAllFlights() will display all
registered passenger for all flights
+ toString(int):String • displayRegisteredUsersForASpecificFlight() will
+ calculateDistance(double, double, double, double):String[] display all registered passenger for a specific flights
+ distanceMeasurementInstructions():void

You might also like