|
||||||||||
| 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.Assignment
public class Assignment
This class represents an assignment give to students in CS399J.
| Field Summary | |
|---|---|
static int |
OPTIONAL
The assignment is optional (awarded as extra credit) |
static int |
OTHER
The assignment is some other kind of grade (POA, etc.) |
static int |
PROJECT
The assignment is a project |
static int |
QUIZ
The assignment is a quiz |
| Constructor Summary | |
|---|---|
Assignment(String name,
double points)
Creates a new Assignment with the given name and
point value. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns a description of this Assignment |
String |
getName()
Returns the name of this Assignment |
double |
getPoints()
Returns the number of points this Assignment is
worth |
int |
getType()
Returns the type of this Assignment |
static void |
main(String[] args)
Main program that creates/edits an Assignment in a
grade book stored in an XML file. |
void |
setDescription(String description)
Sets the description of this Assignment |
void |
setPoints(double points)
Sets the number of points that this Assignment is
worth. |
void |
setType(int type)
Sets the type of this Assignment |
String |
toString()
Returns a brief textual description of this Assignment |
| Methods inherited from class edu.pdx.cs399J.grader.NotableImpl |
|---|
addNote, getNotes, isDirty, makeClean, removeNote, setDirty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PROJECT
public static final int QUIZ
public static final int OTHER
public static final int OPTIONAL
| Constructor Detail |
|---|
public Assignment(String name,
double points)
Assignment with the given name and
point value.
| Method Detail |
|---|
public String getName()
Assignment
public double getPoints()
Assignment is
worth
public void setPoints(double points)
Assignment is
worth.
public String getDescription()
Assignment
public void setDescription(String description)
Assignment
public int getType()
Assignment
PROJECT,
QUIZ,
OTHERpublic void setType(int type)
Assignment
PROJECT,
QUIZ,
OTHERpublic String toString()
Assignment
toString in class Objectpublic static void main(String[] args)
Assignment in a
grade book stored in an XML file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||