Package edu.pdx.cs410J.grader.gradebook
Class Assignment
java.lang.Object
edu.pdx.cs410J.grader.gradebook.NotableImpl
edu.pdx.cs410J.grader.gradebook.Assignment
- All Implemented Interfaces:
Notable
This class represents an assignment give to students in CS410J.
- Author:
- David Whitlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionAssignment(String name, double points) Creates a newAssignmentwith the given name and point value. -
Method Summary
Modifier and TypeMethodDescriptionintReturns a description of thisAssignmentgetName()Returns the name of thisAssignmentdoubleReturns the number of points thisAssignmentis worthgetType()Returns the type of thisAssignmentbooleanisSubmissionLate(LocalDateTime submissionTime) static voidMain program that creates/edits anAssignmentin a grade book stored in an XML file.setCanvasId(int canvasId) setDescription(String description) Sets the description of thisAssignmentvoidsetDueDate(LocalDateTime dueDate) setPoints(double points) Sets the number of points that thisAssignmentis worth.setProjectType(Assignment.ProjectType projectType) Sets the type of thisAssignmenttoString()Returns a brief textual description of thisAssignmentMethods inherited from class edu.pdx.cs410J.grader.gradebook.NotableImpl
addNote, getNotes, isDirty, makeClean, removeNote, setDirty
-
Constructor Details
-
Assignment
Creates a newAssignmentwith the given name and point value.
-
-
Method Details
-
getName
Returns the name of thisAssignment -
getPoints
Returns the number of points thisAssignmentis worth -
setPoints
Sets the number of points that thisAssignmentis worth. -
getDescription
Returns a description of thisAssignment -
setDescription
Sets the description of thisAssignment -
getType
Returns the type of thisAssignment -
setType
Sets the type of thisAssignment -
setCanvasId
-
getCanvasId
-
toString
Returns a brief textual description of thisAssignment -
main
Main program that creates/edits anAssignmentin a grade book stored in an XML file. -
setDueDate
-
getDueDate
-
isSubmissionLate
-
setProjectType
-
getProjectType
-