public abstract class Category
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Collection<Assignment> |
items
a collection of the assignments of this category
|
(package private) java.lang.String |
name
the name of this category
|
(package private) java.util.Collection<Category> |
subcategories
a collection of the subcategories of this category
|
(package private) boolean |
uncategorizedByRawScore
whether uncategorized assignments are graded by raw score or not
|
(package private) Weight |
weight
the amount of weight this category has in the final grade
|
Constructor and Description |
---|
Category() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(Assignment assignment)
Adds the given item to this category.
|
abstract void |
add(Category subcategory)
Adds the given subcategory to this category.
|
java.lang.String name
java.util.Collection<Category> subcategories
java.util.Collection<Assignment> items
Weight weight
boolean uncategorizedByRawScore
public abstract void add(Category subcategory)
subcategory
- the subcategory to add
post:
// the Collection now contains the added subcategory
subcategories'.contains(subcategory);public abstract void add(Assignment assignment)
item
- the item to add
post:
// the Collection now contains the new item
items'.contains(assignment);