-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIController.java
More file actions
41 lines (33 loc) · 1.2 KB
/
IController.java
File metadata and controls
41 lines (33 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package wmich.edu.cs1120.LA3_Lee;
import java.io.*;
public interface IController {
/**
* Displays the collection of library items on the screen
*/
public void displayCollection();
/**
* Requests for the call number from the user, uses the findItem()
* method to check if that item exists in the library, and if it does
* calls the checkOut() method for that item and prints out the item
* that has been checked out.
*/
public void checkoutMaterials();
/**
* Searches in both the array of books and the array of periodicals
* for the book with the call number received as a parameter.
* @param callNum The call number of the item requested by the user
* @return The requested item, or 'null' if item does not exist.
*/
public ILibrary findItem(String callNum);
/**
* Displays the menu options to the user.
*/
public void showMenu();
/**
* Reads data from the input file and stores the items in the
* appropriate array.
* @param fileName The name of the input file.
* @throws IOException Included in case input file is not found.
*/
public void readInput(String fileName) throws IOException;
} // End of interface IController