B C D E F G I L M R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- borrowBook(LibraryCard) - Method in class Library
C
- closeBook() - Method in class TextBook
- college - Variable in class CollegeTest
- College - Class in <Unnamed>
- College(int, int) - Constructor for class College
-
Public constructor for College class This method initializes an object of College with the given number of students and adds them to the ArrayList, and the given number of books to be held by the college.
- collegeLibrary - Variable in class Student
- CollegeTest - Class in <Unnamed>
-
The test class CollegeTest.
- CollegeTest() - Constructor for class CollegeTest
D
- describe() - Method in class College
-
This method prints out the details of the college including its library and student details
- describe() - Method in class Library
- describe() - Method in class LibraryCard
- describe() - Method in class Student
-
Prints out the properties of Student object, what books are borrowed, what chapters have been read and what books can be borrowed on his card
- describe() - Method in class TextBook
E
- expired() - Method in class LibraryCard
F
- finishedStudies() - Method in class Student
-
This method checks if the student has no textbook borrowed and their library card has expired
G
- getCardRef() - Method in class LibraryCard
- getTitle() - Method in class TextBook
I
- isFinished() - Method in class TextBook
- issueCard() - Method in class Library
L
- library - Variable in class College
- Library - Class in <Unnamed>
-
Write a description of class Library here.
- Library(int) - Constructor for class Library
- libraryCard - Variable in class Student
- LibraryCard - Class in <Unnamed>
-
Write a description of class LibraryCard here.
- LibraryCard(int, int) - Constructor for class LibraryCard
-
Constructor for objects of class LibraryCard
M
- main(String[]) - Static method in class College
-
Runs the program
R
- random - Variable in class College
- readNextChapter() - Method in class TextBook
- returnBook(TextBook) - Method in class Library
- runCollege(int) - Method in class College
-
This method runs the college the specified number of times.
S
- setUp() - Method in class CollegeTest
-
Sets up the test fixture.
- setUp() - Method in class StudentTest
-
Sets up the test fixture.
- student - Variable in class StudentTest
- Student - Class in <Unnamed>
- Student(String, Library) - Constructor for class Student
-
Public constructor for Student class
- studentName - Variable in class Student
- students - Variable in class College
- StudentTest - Class in <Unnamed>
-
The test class StudentTest.
- StudentTest() - Constructor for class StudentTest
- study() - Method in class Student
-
If the student has borrowed a book, this method makes them read the next chapter if available, otherwise the book is returned to library.
- swipe() - Method in class LibraryCard
T
- testBookReturned() - Method in class StudentTest
- testCollege() - Method in class CollegeTest
- testFinishedStudies() - Method in class StudentTest
- testStudent() - Method in class StudentTest
- testStudentDone() - Method in class CollegeTest
- textBook - Variable in class Student
- TextBook - Class in <Unnamed>
-
Write a description of class TextBook here.
- TextBook(String, int) - Constructor for class TextBook
-
Constructor for objects of class TextBook
All Classes All Packages