Giter Club home page Giter Club logo

411-hotelroommanager's Introduction

411-HotelRoomManager

How to Start: Server

Run the program with one command line arg to represent port.
Remember to select a port number outside the reserved range

Common Usage:
java ReservationServer [PORT]


Example:
java ReservationServer 12345

How to Start: Client

Run the program with two command line args to represent server ip and port. Remember to select the port number that the server is listening on

Common Usage:
java ReservationClient [SERVER_IP] [PORT]


Example:
java ReservationClient 127.0.0.1 12345

How to Operate: Client

There are a few commands that can be run at this time to retrieve or update information in the hotel. They are explained below. To run any command, simply type the specified command and any necessary arguments into the client. NOTE: All commands will start with a slash (/)

Command: /displayrooms
Description: This command will print out all of the rooms in the hotel along with their current availibility

Command: /buildguest [FIRST_NAME] [LAST_NAME] [PHONE] [EMAIL]
Description: This command will create a new guest object on the hotel

Command: /toggleroomstate [ROOM_NUMBER] [AVAILIBILITY_BOOL] [RESERVER_EMAIL] [CHECK_IN_DATE] [CHECK_OUT_DATE]
Description: This command will update the availibility status of a specified room. It requires two paramaters. The first is the room number that will be changed. The second is a boolean (spelled in agreement with java spec) which will set the availibility of the room.
true == availible
false == occupied

Requirements

Mandatory Requirements for Full Credit:

  1. The system must be networked with a reasonable user interface for users. This user interface doesn't need to be fancy or complex โ€“ it can even be a
    completely command-line system. But if you are expecting user input, you must lay this out in a way that makes it very clear what a user should input and how to do it.

  2. The system must be of some practical use to some user group, which needs to be specified clearly.

  3. The system must be multi-user and implement concurrent threads as an important part of the functionality of the system.

  4. The system must have important critical sections which require thread safety, and must not deadlock even when subjected to large numbers of concurrent transactions.

  5. The base language must be Java, use Java network sockets, and must be able to be compiled and run from the Java command line.

  6. There must be a Java-based system for data persistence โ€“ in other words a text-file, database, or some othermechanism (e.g., XML) where user and possibly other data can be stored and retrieved for later use.

  7. You may use external libraries IF and ONLY IF you reference where you got them, with the proviso that the code you write must satisfy the above requirements. In other words, you may not use external library code to satisfy the basic system requirements given in 1-6 above. For example, it is fine to use a JDBC driver to deal with a database, but you must write the database calls yourself. For another example, it is fine to use a graphics engine to render complex graphics if you need them, but any code you submit to use this graphics engine must be your own.

411-hotelroommanager's People

Contributors

jsr5194 avatar

Watchers

James Cloos avatar  avatar  avatar Fred Fagan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.