Пример #1
0
 @Override
 public void studentPutWishlist(
     Student student, Desk desk, List<Title> wishlist, Environment environment) {
   // tworzenie zadan i dodawanie do kolejki
   for (Title title : wishlist) {
     queue.add(new Task(environment.getBookshelfByTitle(title), desk, title));
   }
 }
Пример #2
0
 @Override
 public void studentPutBook(Student student, Desk desk, Book book, Environment environment) {
   // tworzenie zadania i dodawanie do kolejki
   queue.add(new Task(desk, environment.getBookshelfByTitle(book.getTitle()), book.getTitle()));
 }