예제 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * Checks in all rooms bookings related to a reservation
  * <!-- end-user-doc -->
  */
 public void CheckInAllGuests(Reservation reservation) {
   for (RoomBooking roomBooking : reservation.getRoombooking()) {
     int roomNr = roombookings.checkIn(roomBooking);
     if (roomNr > 0)
       System.out.println(
           "Guest "
               + roomBooking.getRoomresponsible().getFirstName()
               + " "
               + roomBooking.getRoomresponsible().getLastName()
               + " got room number "
               + roomNr);
   }
 }
예제 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * Checks in out rooms bookings related to a reservation
  * <!-- end-user-doc -->
  */
 public void CheckOutAllGuests(Reservation reservation) {
   for (RoomBooking roomBooking : reservation.getRoombooking()) {
     roombookings.checkOut(roomBooking);
   }
 }