Example process analysis of hotel management system

zhaozj2021-02-16  50

Example process analysis of hotel management system

1. Reservation: Prerequisites: Room Free

Enter: Enter customers basic information: name, contact information, room number, check-in time (also automatic expiration time), predetermined time.

Process: Customer requirements are scheduled (independent of system-independent) -> User Query Compliance Room Required by User Requirements | -> Eligible Room Free (Recommend Other Rooms) -> Perform Book -> End | -> Eligible rooms are not idle -> Backup Requirements | | -> Does Not Export Conditional Room (Recommended Not Satisfied) -> End

Result: Room occupation

2, rent: Prerequisites: House free

Enter: User Details: Name, Gender, Document Number, Document Type, Room Number (If not booked or living in non-accustomed rooms), contact information, check-in time (if not scheduled), is expected to settle the date.

Process: Customer Requirements Rent |

| -> There is a qualified house (there is no presence but recommended house) -> Perform rent-> End -> | | -> There is no eligible housing -> end

Result: Room occupation

3. Extension: Prerequisites: Already leased room, the room is not booked

Enter: Change new expected settlement date

Process: Customer Requirements Delay | -> Meeting Prerequisites -> Change The Expected Settlement Date -> End -> | | -> House has been reserved | -> Replace the room is not satisfied -> End - | | -> Replace the room Satisfaction -> Rent Process.

Result: Room occupation

4, settlement: Prerequisites: Rental rooms

Enter: Fees for housing rental

Process: Calculate the cost of room rental.

Result: The room is free

5, release predetermined: Prerequisites: Reservations

enter:

Process: cancellation

Result: The room is free

6, alternate reservation: Prerequisites: The room is all reserved or used

Enter: Book

Process: Alternate Reservation

RESULTS: Houses have alternate predetermined state.

7, query room rental situation: Prerequisites:

Enter: Query Conditions

Process: Inquiry according to the query conditions

Result: Get the results of the query

After ending the use case process analysis, I found that I have fallen into a dilemma, what is the meaning of this vocabulary, the author defines the use case as: "The use case is the system's end user has some useful results. Single task. So, in the real implementation part, should we use an example as a class or use case just some ways to be class? Analysis from the definition should be just a method and is not class. But should I start from the class or from a class method during the analysis of the surface object? Whether the vocabulary in the forebel should be the basic content of the class? And the information of the "OO Design Process" is not completed after the use case. But I can't wait for a tutorial to continue. The future content can only be carried out according to your own speculation, if you have a better solution, please discuss me.

Fortunately, I found http://www.javaworld.com/javaworld/jw-07-1999/jw-07-toolbox.html, is another article about OO, I hope to be able Some inspirations from it. And continue to approach our goals. to be continued

Copyright: IDILENT website reproduced please indicate the author's other reprint, please contact the author (iDilent@yahoo.com.cn).

转载请注明原文地址:https://www.9cbs.com/read-24374.html

New Post(0)