Package edu.pdx.cs410J.grader.gradebook
Class Student
java.lang.Object
edu.pdx.cs410J.grader.gradebook.NotableImpl
edu.pdx.cs410J.grader.gradebook.Student
- All Implemented Interfaces:
Notable
This class represents a student who is taking CS410J.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLate(Assignment assignment) voidMakes note of the name of an assignment that is latevoidaddResubmitted(String assignmentName) Makes note of the name of an assignment that is resubmittedbooleanTwoStudents are equal if they have the same id(package private) StringReturns a complete textual description of thisStudent.getEmail()Returns the email address of thisStudentReturns the first name of thisStudentReturns thisStudent's full name including first, last, and nick names.getGrade(Assignment project) Returns theGradea student received on an assignment of a given name.Returns the names of the assignments for which thisStudenthas received aGrade.getId()Returns the id of thisStudentReturns the last name of thisStudentgetLate()Returns the names of all of the assignments that are late.getMajor()Returns the major of thisStudentReturns the nick name of thisStudentReturns the names of all of the assignments that are resubmitted.inthashCode()Two students that are equal must have the same hash codebooleanisDirty()If any of its grades is dirty, then the student is dirtystatic voidMain program that is used to add aStudentto a grade book.voidMarks thisStudentas being cleansetCanvasId(String canvasId) Sets the email address of thisStudentsetEnrolledSection(Student.Section enrolledSection) setFirstName(String firstName) Returns the last name of thisStudentsetGrade(Assignment assignment, double score) setGrade(Assignment assignment, Grade grade) voidSets aGradea student received on an assignment of a given name.setLastName(String lastName) Returns the last name of thisStudentvoidsetLetterGrade(LetterGrade letterGrade) voidSets the major of thisStudentvoidsetNickName(String nickName) Returns the nick name of thisStudenttoString()Returns a brief textual description of thisStudentMethods inherited from class edu.pdx.cs410J.grader.gradebook.NotableImpl
addNote, getNotes, removeNote, setDirty
-
Constructor Details
-
Student
Creates a newStudentwith a given id. An example of an id is the student's UNIX login name.
-
-
Method Details
-
getId
Returns the id of thisStudent -
getFirstName
Returns the first name of thisStudent -
setFirstName
Returns the last name of thisStudent -
getLastName
Returns the last name of thisStudent -
setLastName
Returns the last name of thisStudent -
getNickName
Returns the nick name of thisStudent -
setNickName
Returns the nick name of thisStudent -
getFullName
Returns thisStudent's full name including first, last, and nick names. -
getEmail
Returns the email address of thisStudent -
setEmail
Sets the email address of thisStudent -
getMajor
Returns the major of thisStudent -
setMajor
Sets the major of thisStudent -
getGradeNames
Returns the names of the assignments for which thisStudenthas received aGrade. -
getGrade
Returns theGradea student received on an assignment of a given name. If the student has no grade for that assignment,nullis returned. -
setGrade
Sets aGradea student received on an assignment of a given name. -
getLate
Returns the names of all of the assignments that are late. -
addLate
Makes note of the name of an assignment that is late -
getResubmitted
Returns the names of all of the assignments that are resubmitted. -
addResubmitted
Makes note of the name of an assignment that is resubmitted -
makeClean
Marks thisStudentas being clean- Overrides:
makeCleanin classNotableImpl
-
isDirty
If any of its grades is dirty, then the student is dirty- Overrides:
isDirtyin classNotableImpl
-
getDescription
Returns a complete textual description of thisStudent. -
equals
TwoStudents are equal if they have the same id -
hashCode
Two students that are equal must have the same hash code -
toString
Returns a brief textual description of thisStudent -
main
Main program that is used to add aStudentto a grade book. -
getGrade
-
setCanvasId
-
getCanvasId
-
getLetterGrade
-
setLetterGrade
-
setGrade
-
addLate
-
setGrade
-
setEnrolledSection
-
getEnrolledSection
-