Index

A B C D F G H I M N P R S U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

addBookRoom(int, int) - Method in class HotelReservationSystem.Room
determines the days the room is booked and make it's availability for those days true and increment the number of days the room is booked by the total book book length
ASSET_ACCENT_BUTTON(String) - Static method in class HotelReservationSystem.Assets
Makes a bright accented button
ASSET_ADD_PANELS(int) - Static method in class HotelReservationSystem.Assets
Created an array of panels.
ASSET_BASIC_BUTTON(String) - Static method in class HotelReservationSystem.Assets
Makes a basic button
ASSET_MENU(String) - Static method in class HotelReservationSystem.Assets
Creates the options of the menu bar
ASSET_MENU_BAR() - Static method in class HotelReservationSystem.Assets
Creates a JMenuBar for the dropdown buttons
ASSET_MENU_BAR(HRS, String) - Static method in class HotelReservationSystem.Assets
Creates a dynamically updating menu bar for the hotel list
ASSET_OUTPUT_BOX() - Static method in class HotelReservationSystem.Assets
Not meant to be called.
ASSET_OUTPUT_BOX(int, int, HRS) - Static method in class HotelReservationSystem.Assets
Creates a dynamically updating output box.
ASSET_OUTPUT_BOX(int, int, String) - Static method in class HotelReservationSystem.Assets
Creates a dynamically updating output box.
ASSET_PANE(JFrame, String, String) - Static method in class HotelReservationSystem.Assets
Creates a subwindow for information regarding the model
ASSET_SCROLL_BOX() - Static method in class HotelReservationSystem.Assets
Makes a JScrollPane with the appropriate design.
ASSET_SEPARATOR(int) - Static method in class HotelReservationSystem.Assets
Creates a separator for the buttons.
ASSET_SPINNER(int, int) - Static method in class HotelReservationSystem.Assets
Creates a JSpinner component.
ASSET_TEXT_FIELD(String) - Static method in class HotelReservationSystem.Assets
Makes a text field for the user to fill in
ASSET_TITLE_BOX(String[], String, int, int) - Static method in class HotelReservationSystem.Assets
Creates a title box.
Assets - Class in HotelReservationSystem
Class that contains all the assets of the GUI implementation of the HRS.
Assets() - Constructor for class HotelReservationSystem.Assets
Assets empty constructor

B

bookRoom(String, int, int, int, String) - Method in class HotelReservationSystem.Hotel
Books a room and makes a reservation, if possible

C

calcPrice(int, int) - Method in class HotelReservationSystem.Room
Calculates the actual price of the room with the base price and the DPM
changeDPM(int, double) - Method in class HotelReservationSystem.Room
changes the Date Price Modifer of a specific day of the room
changeDPMs(int, double) - Method in class HotelReservationSystem.Hotel
Changes the date price modifier for a specific day
changePrice(double) - Method in class HotelReservationSystem.Hotel
changes the price of all rooms in the hotel, if and only if there are no reservations
changeRoomName(String) - Method in class HotelReservationSystem.Hotel
Changes the name of the rooms in the hotel
Colors - Class in HotelReservationSystem
A class that the usage of the color theme
Colors() - Constructor for class HotelReservationSystem.Colors
Empty colors constructor
CREATE_MENU_ITEM(String) - Static method in class HotelReservationSystem.Assets
Creates a JMenuItem and their actions listeners
createHotel(String, int, int) - Method in class HotelReservationSystem.HRS
GUI for creating hotel
createHotel(Scanner) - Method in class HotelReservationSystem.HRS
User I/O for creating a hotel

D

delRoom(int) - Method in class HotelReservationSystem.Hotel
User I/O for deleting room.
Driver - Class in HotelReservationSystem
HotelReservationSystem.Driver class for the Hotel Reservation System
Driver() - Constructor for class HotelReservationSystem.Driver
Constructor for the Driver Class (blank)

F

fetchAvails(int, int) - Method in class HotelReservationSystem.Hotel
return an array of the names of the available or booked for a day
fetchHotel(String) - Method in class HotelReservationSystem.HRS
returns the hotel given the name of the hotel
fetchRoom(String) - Method in class HotelReservationSystem.Hotel
return the room given the name of the room of a hotelName
Fonts - Class in HotelReservationSystem
A class that handles fonts for the GUI of the Hotel Reservation System.
Fonts() - Constructor for class HotelReservationSystem.Fonts
Default empty constructor

G

get(String, float) - Static method in class HotelReservationSystem.Fonts
Method overloading of get() without isRegistered parameter
get(String, float, boolean) - Static method in class HotelReservationSystem.Fonts
Created a font that can be used by the Java Swing GUI from a .ttf file
getAvailability() - Method in class HotelReservationSystem.Room
Getter for availability which is an array of booleans.
getAverageDPM() - Method in class HotelReservationSystem.Hotel
Gets the average DPM of all the rooms in the hotel
getBasePrice() - Method in class HotelReservationSystem.Hotel
Getter for the base price of the Hotel
getBasePrice() - Method in class HotelReservationSystem.Room
Getter for the base price of the room
getBlack() - Static method in class HotelReservationSystem.Colors
returns the black color from the hex code
getCheckin() - Method in class HotelReservationSystem.GUI_RESERVATION
The getter of the check in
getCheckin() - Method in class HotelReservationSystem.Reservation
Getter for the check in day
getCheckout() - Method in class HotelReservationSystem.Reservation
Getter for the check out day
getDarkGreen() - Static method in class HotelReservationSystem.Colors
returns the dark green color from the hex code
getDay_num() - Method in class HotelReservationSystem.GUI_DPM
Getter for the day number
getDaysBooked() - Method in class HotelReservationSystem.Room
Getter for the days booked in the room
getDiscount() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter for the discount code applied
getDPM() - Method in class HotelReservationSystem.Room
Getter for the reservation of the room
getEarnings() - Method in class HotelReservationSystem.Hotel
Getter for the earnings of the Hotel
getGuest() - Method in class HotelReservationSystem.Reservation
Getter for the guest name
getGuest_name() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter for the guest Name
getGuestName() - Method in class HotelReservationSystem.GUI_RESERVATION
The getter of the guest name
getHotel() - Method in class HotelReservationSystem.Room
Getter for the hotel of the room
getHotel_name() - Method in class HotelReservationSystem.GUI_CREATE
Getter for the hotel name
getHotel_name() - Method in class HotelReservationSystem.GUI_MANAGE
Getter for the hotel name
getHotel_name() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter for the hotel_name
getHotel_name() - Method in class HotelReservationSystem.GUI_VIEW
Getter for the hotel name
getHotelName() - Method in class HotelReservationSystem.GUI_DPM
Getter for the hotel name
getHotelName() - Method in class HotelReservationSystem.GUI_RESERVATION
The getter of the hotel name
getHotelName() - Method in class HotelReservationSystem.GUI_ROOM
The getter of the hotel name
getHotels() - Method in class HotelReservationSystem.HRS
Getter for the ArrayList of hotels in the HotelReservationSystem.HRS
getIn_Day() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter for the check in Day
getInput(Scanner) - Method in class HotelReservationSystem.HRS
Method that simplifies input handling for integer inputs
getInputDBL(Scanner) - Method in class HotelReservationSystem.HRS
Method that simplifies input handling for double inputs
getMains() - Method in class HotelReservationSystem.GUI_CREATE
Getter for the main GUI component
getMains() - Method in class HotelReservationSystem.GUI_DPM
Getter for the main GUI component
getMains() - Method in class HotelReservationSystem.GUI_MANAGE
Getter for the main window of the subwindow
getMains() - Method in class HotelReservationSystem.GUI_RESERVATION
The getter of the root GUI
getMains() - Method in class HotelReservationSystem.GUI_ROOM
The getter of the root GUI
getMains() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter for the GUI_MAIN window
getMains() - Method in class HotelReservationSystem.GUI_VIEW
Getter for the GUI_MAIN window
getName() - Method in class HotelReservationSystem.Hotel
Getter for the name of the Hotel
getName() - Method in class HotelReservationSystem.Room
Getter for the name of the room
getNew_hotel() - Method in class HotelReservationSystem.GUI_MANAGE
Getter for the new hotel name
getNormGreen() - Static method in class HotelReservationSystem.Colors
returns the black color from the hex code
getNum_room() - Method in class HotelReservationSystem.GUI_ROOM
Getter for num_room
getOut_Day() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter for the check out day
getPrice_mod() - Method in class HotelReservationSystem.GUI_DPM
Getter for the price modifier
getReservation() - Method in class HotelReservationSystem.Room
Getter for the reservation assigned to the room
getReservationCount() - Method in class HotelReservationSystem.Hotel
Getter for the number of reservations in the Hotel
getReservationNumber() - Method in class HotelReservationSystem.Reservation
Getter for the total cost of the reservation
getReservations() - Method in class HotelReservationSystem.Hotel
Getter for the ArrayList of reservation objects in the Hotel
getRoom() - Method in class HotelReservationSystem.Reservation
Getter for the room of the reservation
getRoom_num() - Method in class HotelReservationSystem.GUI_DPM
Getter for the room number
getRoom_num() - Method in class HotelReservationSystem.GUI_MANAGE
The getter for the room number
getRoom_opt() - Method in class HotelReservationSystem.GUI_DPM
Getter for the room option
getRoom_tot() - Method in class HotelReservationSystem.GUI_CREATE
Getter for the total number of rooms
getRoomCount() - Method in class HotelReservationSystem.Hotel
Getter for the number of rooms in the Hotel
getRooms() - Method in class HotelReservationSystem.Hotel
Getter for the Arraylist of Room objects in the Hotel
getRoomType() - Method in class HotelReservationSystem.Room
Returns the room type of the room
getRoomType() - Method in class HotelReservationSystem.RoomDLX
Returns the room type of the room
getRoomType() - Method in class HotelReservationSystem.RoomEXC
Returns the room type of the room
getRoomType() - Method in class HotelReservationSystem.RoomSTD
Returns the room type of the room
getTotal() - Method in class HotelReservationSystem.Reservation
Getter for the total cost of the reservation
getType_num() - Method in class HotelReservationSystem.GUI_CREATE
Getter for the room type number
getType_num() - Method in class HotelReservationSystem.GUI_ROOM
Getter for the room Type
getType_num() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Getter of the room type
getVividGreen() - Static method in class HotelReservationSystem.Colors
returns the vivid green color from the hex code
getWindowChecker() - Method in class HotelReservationSystem.GUI_MAIN
Getter for the window checker
getWindowChecker_manage() - Method in class HotelReservationSystem.GUI_MANAGE
Getter of window checker
GUI - Class in HotelReservationSystem
An abstract class for creating Graphical User Interfaces (GUIs) for the Hotel Reservation System (HRS).
GUI(HRS, int, int) - Constructor for class HotelReservationSystem.GUI
Constructor for the GUI class
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_CREATE
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_DPM
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_MAIN
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_MANAGE
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_RESERVATION
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_ROOM
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI_VIEW
Configures the GUI window close operation
GUI_CONFIG_WINDOW_CLOSE() - Method in class HotelReservationSystem.GUI
Configures the GUI window close operation
GUI_CREATE - Class in HotelReservationSystem
A class that extends GUI that creates the new hotel window
GUI_CREATE(HRS, int, int, GUI_MAIN) - Constructor for class HotelReservationSystem.GUI_CREATE
The constructor for GUI_CREATE
GUI_DPM - Class in HotelReservationSystem
A class that extends GUI that creates the change DPM window under manage hotel
GUI_DPM(HRS, int, int, GUI_MANAGE, String) - Constructor for class HotelReservationSystem.GUI_DPM
The constructor for GUI_DPM
GUI_MAIN - Class in HotelReservationSystem
A class that extends GUI that creates the HRS window
GUI_MAIN(HRS, int, int) - Constructor for class HotelReservationSystem.GUI_MAIN
The constructor for GUI_MAIN
GUI_MANAGE - Class in HotelReservationSystem
A class that extends GUI that creates the manage hotel window
GUI_MANAGE(HRS, int, int, GUI_MAIN) - Constructor for class HotelReservationSystem.GUI_MANAGE
The constructor for GUI_MANAGE
GUI_RESERVATION - Class in HotelReservationSystem
A class that extends GUI that creates a reservation under manage hotel
GUI_RESERVATION(HRS, int, int, GUI_MANAGE, String) - Constructor for class HotelReservationSystem.GUI_RESERVATION
Constructor for the GUI room
GUI_ROOM - Class in HotelReservationSystem
A class that extends GUI that creates the new room window under manage hotel
GUI_ROOM(HRS, int, int, GUI_MANAGE, String) - Constructor for class HotelReservationSystem.GUI_ROOM
Constructor for the GUI room
GUI_SIM_BOOK - Class in HotelReservationSystem
A class that extends GUI that creates the simulate booking window
GUI_SIM_BOOK(HRS, int, int, GUI_MAIN) - Constructor for class HotelReservationSystem.GUI_SIM_BOOK
Constructor for GUI_SIM_BOOK
GUI_VIEW - Class in HotelReservationSystem
A class that extends GUI that creates the view hotel window
GUI_VIEW(HRS, int, int, GUI_MAIN) - Constructor for class HotelReservationSystem.GUI_VIEW
Constructor for GUI_VIEW

H

Hotel - Class in HotelReservationSystem
This class represents a Hotel object in the system
Hotel(String) - Constructor for class HotelReservationSystem.Hotel
Constructor for the Hotel object
HotelReservationSystem - package HotelReservationSystem
 
hrs - Variable in class HotelReservationSystem.GUI
The Hotel Reservation System (HRS) instance
HRS - Class in HotelReservationSystem
An object that handles the reservation system.
HRS() - Constructor for class HotelReservationSystem.HRS
Constructor for the Hotel Reservation System

I

init() - Static method in class HotelReservationSystem.Fonts
Initializes the fonts and the types.
init() - Method in class HotelReservationSystem.GUI_CREATE
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI_DPM
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI_MAIN
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI_MANAGE
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI_RESERVATION
 
init() - Method in class HotelReservationSystem.GUI_ROOM
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI_SIM_BOOK
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI_VIEW
Initializes the GUI components
init() - Method in class HotelReservationSystem.GUI
Initializes the GUI components
isAvailable(int) - Method in class HotelReservationSystem.Room
a checker that determines if the room is a available for some day
isAvailable(int, int) - Method in class HotelReservationSystem.Room
a checker that determines if the room is a available for a range

M

main(String[]) - Static method in class HotelReservationSystem.Driver
Main method for the Hotel Reservation System
manageHotel(Scanner) - Method in class HotelReservationSystem.HRS
User I/O for managing a hotel

N

newRoom(int) - Method in class HotelReservationSystem.Hotel
creates a new room in the hotel, if possible

P

prepareForRemoval() - Method in class HotelReservationSystem.Hotel
Prepares a hotel for removal by resetting all its variables

R

remBookRoom(int, int) - Method in class HotelReservationSystem.Room
removes the availability of the room and decrements the number of days the room is booked
removeReservation(String, int) - Method in class HotelReservationSystem.Hotel
Removes the reservation from a hotel room.
Reservation - Class in HotelReservationSystem
This class represents an object Reservation of a room for the system
Reservation(String, int, int, Room, int, double) - Constructor for class HotelReservationSystem.Reservation
Constructor for the Reservation class
Room - Class in HotelReservationSystem
A class that represents an object that represents the rooms in a hotel.
Room(String, Hotel, double) - Constructor for class HotelReservationSystem.Room
Constructor for the Room object
RoomDLX - Class in HotelReservationSystem
A class that represents deluxe room extends Room
RoomDLX(String, Hotel, double) - Constructor for class HotelReservationSystem.RoomDLX
Constructor for the Room object
RoomEXC - Class in HotelReservationSystem
A class that represents executive room extends Room
RoomEXC(String, Hotel, double) - Constructor for class HotelReservationSystem.RoomEXC
Constructor for the Room object
RoomSTD - Class in HotelReservationSystem
A class that represents standard room extends Room
RoomSTD(String, Hotel, double) - Constructor for class HotelReservationSystem.RoomSTD
Constructor for the Room object
roomTypeCount() - Method in class HotelReservationSystem.Hotel
Counts the number of rooms for each room type

S

setAvailability(boolean[]) - Method in class HotelReservationSystem.Room
Setter for the availability of the Room
setBasePrice(double) - Method in class HotelReservationSystem.Hotel
Sets the base price of the Hotel
setBasePrice(double) - Method in class HotelReservationSystem.Room
Setter for the base price
setCheckin(int) - Method in class HotelReservationSystem.GUI_RESERVATION
The setter of the check in
setDay_num(int) - Method in class HotelReservationSystem.GUI_DPM
Setter for the day number
setDaysBooked(int) - Method in class HotelReservationSystem.Room
Setter for the days booked
setDiscount(String) - Method in class HotelReservationSystem.GUI_SIM_BOOK
Setter for the discount code
setDPM(double[]) - Method in class HotelReservationSystem.Room
Setter for the DPM of the hotel.
setEarnings(double) - Method in class HotelReservationSystem.Hotel
Sets the earnings of the Hotel
setGuest_name(String) - Method in class HotelReservationSystem.GUI_SIM_BOOK
Setter for the guest name
setGuestName(String) - Method in class HotelReservationSystem.GUI_RESERVATION
The setter of the guest name
setHotel_name(String) - Method in class HotelReservationSystem.GUI_CREATE
Setter for the hotel name
setHotel_name(String) - Method in class HotelReservationSystem.GUI_MANAGE
Setter for the hotel name
setHotel_name(String) - Method in class HotelReservationSystem.GUI_SIM_BOOK
Setter for the hotel_name
setHotel_name(String) - Method in class HotelReservationSystem.GUI_VIEW
Setter for the hotel name
setHotels(ArrayList<Hotel>) - Method in class HotelReservationSystem.HRS
Sets the hotels in the ArrayList of Hotel
setIn_Day(int) - Method in class HotelReservationSystem.GUI_SIM_BOOK
Setter for the check in Day
setName(String) - Method in class HotelReservationSystem.Hotel
Sets the name of the Hotel
setName(String) - Method in class HotelReservationSystem.Room
Setter for the room name
setNew_hotel(String) - Method in class HotelReservationSystem.GUI_MANAGE
Setter for the new hotel name
setNum_room(int) - Method in class HotelReservationSystem.GUI_ROOM
Setter for num_room
setOut_Day(int) - Method in class HotelReservationSystem.GUI_SIM_BOOK
Setter for the check out day
setPrice_mod(double) - Method in class HotelReservationSystem.GUI_DPM
Setter for the price modifier
setReservation(Reservation) - Method in class HotelReservationSystem.Room
Setter for the reservation of the hotel
setReservationCount(int) - Method in class HotelReservationSystem.Hotel
Setter for the number of reservations in the Hotel
setReservations(ArrayList<Reservation>) - Method in class HotelReservationSystem.Hotel
Sets the reservation of the Hotel
setRoom_num(int) - Method in class HotelReservationSystem.GUI_MANAGE
Setter for the room number
setRoom_num(String) - Method in class HotelReservationSystem.GUI_DPM
Setter for the room number
setRoom_opt(int) - Method in class HotelReservationSystem.GUI_DPM
Setter for the room option
setRoom_tot(int) - Method in class HotelReservationSystem.GUI_CREATE
Setter for the total number of rooms
setRoomCount(int) - Method in class HotelReservationSystem.Hotel
Setter for the number of rooms in the Hotel
setRooms(ArrayList<Room>) - Method in class HotelReservationSystem.Hotel
Sets the rooms in the Hotel
setType_num(int) - Method in class HotelReservationSystem.GUI_CREATE
Setter for the room type number
setType_num(int) - Method in class HotelReservationSystem.GUI_ROOM
Setter for the room type
setType_num(int) - Method in class HotelReservationSystem.GUI_SIM_BOOK
Setter of the room type
setWindowChecker(boolean) - Method in class HotelReservationSystem.GUI_MAIN
Setter for the window checker
setWindowChecker_manage(boolean) - Method in class HotelReservationSystem.GUI_MANAGE
Setter for the window checker
showHotels() - Method in class HotelReservationSystem.HRS
Lists the hotels with their number of rooms
showMenu() - Method in class HotelReservationSystem.HRS
Shows the main menu of the program
simBooking(Scanner) - Method in class HotelReservationSystem.HRS
User I/O for booking simulation

U

UPDATE_CLOCK_TIME() - Static method in class HotelReservationSystem.Assets
Gets the current time and formats it.
UPDATE_OUTPUT_BOX(HRS) - Static method in class HotelReservationSystem.Assets
Specifically for the hotel list.
UPDATE_OUTPUT_BOX(String) - Static method in class HotelReservationSystem.Assets
Specifically for the status bar.
UPDATE_TITLE_BOX(JEditorPane, String[], String) - Static method in class HotelReservationSystem.Assets
Updates the text inside the title box.

V

verifyDiscount(String) - Method in class HotelReservationSystem.HRS
Verifies the discount code entered by the user
viewHotel(Scanner) - Method in class HotelReservationSystem.HRS
User I/O for viewing the details of a hotel

W

window_height - Variable in class HotelReservationSystem.GUI
The height of the GUI window
window_width - Variable in class HotelReservationSystem.GUI
The width of the GUI window
A B C D F G H I M N P R S U V W 
All Classes and Interfaces|All Packages|Serialized Form