Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.lang.Integer> |
numScores
The List containing an entry for how many students have a particular score.
|
(package private) java.util.List<Section> |
sections
Section to which the visual will apply to.
|
Constructor and Description |
---|
AbstractGraph() |
Modifier and Type | Method and Description |
---|---|
abstract void |
categorizeScores()
Uses the Section to find the Scores necessary to draw the chart as well as categorizes them into numScores
|
private static int |
countCollection(java.util.List<java.lang.Integer> collection) |
private static int |
countStudents(java.util.List<Section> sections) |
java.util.List<Section> sections
java.util.List<java.lang.Integer> numScores
private static int countCollection(java.util.List<java.lang.Integer> collection)
private static int countStudents(java.util.List<Section> sections)
public abstract void categorizeScores()
post: //Ensure that the numScores list is correct by summing the contents of the list and verifying that it is the //same size as the number of students countCollection(numScores) == countStudents(sections);