Room Service Module Specs


The documented modules are:


  1. Add An Order
    • Called by:
      • Order
    • Calls:
      • Get room number
      • Get order time
      • Get order date
      • Get delivery time
      • Get delivery date
      • Get item number
      • Get number of items ordered
      • Get employee ID
      • Get comments
    • Calling sequence:
      1. Get room number
      2. Get order time
      3. Get order date
      4. Get delivery time
      5. Get delivery date
      6. Get service item number
      7. Get number of items ordered
      8. Get employee ID
      9. Get comments
    • Input:
      • None
    • Output:
      • food order - instance to be updated in data store "Fees"
      • movie order - instance to be updated in data store "Fees"
      • wake-up order - instance to be updated in data store "Fees"
      • Status message to user
    • Errors:
      • None
    • Description:
      • Adds an item to invoice's food order, movie order, or wake-up order. Adds the cost of the item to the present total. It returns an status message to the user (successful/unsuccessful).
  2. Cancel An Order
    • Called by:
      • Order
    • Calls:
      • Get room number
      • Get item number
      • Get delivery time
      • Get delivery date
    • Calling sequence:
      1. Get room number
      2. Get item number
      3. Get delivery time
      4. Get delivery date
    • Input:
      • None
    • Output:
      • food order - instance to be removed from data store "Fees"
      • movie order - instance to be removed from data store "Fees"
      • wake-up order - instance to be removed from data store "Fees"
      • Status message to user
    • Errors:
      • None
    • Description:
      • Deletes an item from the invoice's food order, movie order, or wake-up order. Subtracts the item cost from the present total. It returns an status message (successful/unsuccessful).
  3. Modify An Order
    • Called by:
      • Order
    • Calls:
      • Get room number
      • Get delivery time
      • Get delivery date
      • Get service item number
      • Get number of items ordered
      • Get employee ID
      • Get comments
    • Calling sequence:
      1. Get room number
      2. Get delivery time
      3. Get delivery date
      4. Get service item number
      5. Get number of items ordered
      6. Get employee ID
      7. Get comments
    • Input:
      • None
    • Output:
      • food order - instance to be updated in data store "Fees"
      • movie order - instance to be updated in data store "Fees"
      • wake-up order - instance to be updated in data store "Fees"
      • Status message to user
    • Errors:
      • None
    • Description:
      • Modifies information associated with a food order, movie order, or wake-up order. It returns an status message (successful/unsuccessful).
  4. Process completed order
    • Called by:
      • Order
    • Calls:
      • Get room number
    • Calling sequence:
      1. Get room number
      2. Get comments
    • Input:
      • None
    • Output:
      • food order - instance to be updated as completed
      • movie order - instance to be updated as completed
      • wake-up order - instance to be updated as completed
      • Status message to user
    • Errors:
      • None
    • Description:
      • Updates an order as being completed in field comment in data store "Order" if the order exists. Otherwise returns an status message (unsuccessful).
  5. Search By Room Number
    • Called by:
      • Search by
    • Calls:
      • Get room number
    • Calling sequence:
      1. Get room number
    • Input:
      • None
    • Output:
      • food order - instance to be returned to user
      • movie order - instance to be returned to user
      • wake-up order(s) - instance(s) to be returned to user
      • status message to user
    • Errors:
      • None
    • Description:
      • Search for corresponding information associated with specified room number. Returns the food order, movie order and wake-up order information for the desired room.
  6. Search By Delivery Time
    • Called by:
      • Search by
    • Calls:
      • Get delivery time
    • Calling sequence:
      1. Get delivery time
    • Input:
      • None
    • Output:
      • food order(s) - instance(s) to be returned to user
      • movie order(s) - instance(s) to be returned to user
      • wake-up order(s) - instance(s) to be returned to user
      • status message to user
    • Errors:
      • None
    • Description:
      • Search for information corresponding to the delivery time inputted.