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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLate
(Assignment assignment) void
Makes note of the name of an assignment that is latevoid
addResubmitted
(String assignmentName) Makes note of the name of an assignment that is resubmittedboolean
TwoStudent
s are equal if they have the same id(package private) String
Returns a complete textual description of thisStudent
.getEmail()
Returns the email address of thisStudent
Returns the first name of thisStudent
Returns thisStudent
's full name including first, last, and nick names.getGrade
(Assignment project) Returns theGrade
a student received on an assignment of a given name.Returns the names of the assignments for which thisStudent
has received aGrade
.getId()
Returns the id of thisStudent
Returns the last name of thisStudent
getLate()
Returns the names of all of the assignments that are late.getMajor()
Returns the major of thisStudent
Returns the nick name of thisStudent
Returns the names of all of the assignments that are resubmitted.int
hashCode()
Two students that are equal must have the same hash codeboolean
isDirty()
If any of its grades is dirty, then the student is dirtystatic void
Main program that is used to add aStudent
to a grade book.void
Marks thisStudent
as being cleansetCanvasId
(String canvasId) Sets the email address of thisStudent
setEnrolledSection
(Student.Section enrolledSection) setFirstName
(String firstName) Returns the last name of thisStudent
setGrade
(Assignment assignment, double score) setGrade
(Assignment assignment, Grade grade) void
Sets aGrade
a student received on an assignment of a given name.setLastName
(String lastName) Returns the last name of thisStudent
void
setLetterGrade
(LetterGrade letterGrade) void
Sets the major of thisStudent
void
setNickName
(String nickName) Returns the nick name of thisStudent
toString()
Returns a brief textual description of thisStudent
Methods inherited from class edu.pdx.cs410J.grader.gradebook.NotableImpl
addNote, getNotes, removeNote, setDirty
-
Constructor Details
-
Student
Creates a newStudent
with 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 thisStudent
has received aGrade
. -
getGrade
Returns theGrade
a student received on an assignment of a given name. If the student has no grade for that assignment,null
is returned. -
setGrade
Sets aGrade
a 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 thisStudent
as being clean- Overrides:
makeClean
in classNotableImpl
-
isDirty
If any of its grades is dirty, then the student is dirty- Overrides:
isDirty
in classNotableImpl
-
getDescription
Returns a complete textual description of thisStudent
. -
equals
TwoStudent
s 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 aStudent
to a grade book. -
getGrade
-
setCanvasId
-
getCanvasId
-
getLetterGrade
-
setLetterGrade
-
setGrade
-
addLate
-
setGrade
-
setEnrolledSection
-
getEnrolledSection
-