|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.grader.NotableImpl
edu.pdx.cs399J.grader.Student
public class Student
This class represents a student who is taking CS399J.
| Constructor Summary | |
|---|---|
Student(String id)
Creates a new Student with a given id. |
|
| Method Summary | |
|---|---|
void |
addLate(String assignmentName)
Makes note of the name of an assignment that is late |
void |
addResubmitted(String assignmentName)
Makes note of the name of an assignment that is resubmitted |
boolean |
equals(Object o)
Two Students are equal if they have the same id |
String |
getEmail()
Returns the email address of this Student |
String |
getFirstName()
Returns the first name of this Student |
String |
getFullName()
Returns this Student's full name including first,
last, and nick names. |
Grade |
getGrade(String assignmentName)
Returns the Grade a student received on an
assignment of a given name. |
Set |
getGradeNames()
Returns the names of the assignments for which this Student has received a Grade. |
String |
getId()
Returns the id of this Student |
String |
getLastName()
Returns the last name of this Student |
List<String> |
getLate()
Returns the names of all of the assignments that are late. |
String |
getMajor()
Returns the major of this Student |
String |
getNickName()
Returns the nick name of this Student |
List<String> |
getResubmitted()
Returns the names of all of the assignments that are resubmitted. |
String |
getSsn()
Returns the social security number of this Student |
int |
hashCode()
Two students that are equal must have the same hash code |
boolean |
isDirty()
If any of its grades is dirty, then the student is dirty |
static void |
main(String[] args)
Main program that is used to add a Student to a
grade book. |
void |
makeClean()
Marks this Student as being clean |
void |
setEmail(String email)
Sets the email address of this Student |
void |
setFirstName(String firstName)
Returns the last name of this Student |
void |
setGrade(String assignmentName,
Grade grade)
Sets a Grade a student received on an assignment of
a given name. |
void |
setLastName(String lastName)
Returns the last name of this Student |
void |
setMajor(String major)
Sets the major of this Student |
void |
setNickName(String nickName)
Returns the nick name of this Student |
void |
setSsn(String ssn)
Sets the social security number of this Student |
String |
toString()
Returns a brief textual description of this Student |
| Methods inherited from class edu.pdx.cs399J.grader.NotableImpl |
|---|
addNote, getNotes, removeNote, setDirty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Student(String id)
Student with a given id. An example
of an id is the student's UNIX login name.
| Method Detail |
|---|
public String getId()
Student
public String getFirstName()
Student
public void setFirstName(String firstName)
Student
public String getLastName()
Student
public void setLastName(String lastName)
Student
public String getNickName()
Student
public void setNickName(String nickName)
Student
public String getFullName()
Student's full name including first,
last, and nick names.
public String getEmail()
Student
public void setEmail(String email)
Student
public String getSsn()
Student
public void setSsn(String ssn)
Student
public String getMajor()
Student
public void setMajor(String major)
Student
public Set getGradeNames()
Student has received a Grade.
public Grade getGrade(String assignmentName)
Grade a student received on an
assignment of a given name. If the student has no grade for that
assignment, null is returned.
public void setGrade(String assignmentName,
Grade grade)
Grade a student received on an assignment of
a given name.
public List<String> getLate()
public void addLate(String assignmentName)
public List<String> getResubmitted()
public void addResubmitted(String assignmentName)
public void makeClean()
Student as being clean
makeClean in class NotableImplpublic boolean isDirty()
isDirty in class NotableImplpublic boolean equals(Object o)
Students are equal if they have the same id
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
Student
toString in class Objectpublic static void main(String[] args)
Student to a
grade book.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||