20 lines
545 B
Java
Executable File
20 lines
545 B
Java
Executable File
package grading;
|
|
|
|
import java.util.*;
|
|
|
|
/**
|
|
* An interface for strategies of calculating a final grade from a list of grades.
|
|
*/
|
|
public interface GradingStrategy
|
|
{
|
|
/**
|
|
* @param key
|
|
* The key for the final calculated grade
|
|
* @param grades
|
|
* The list of grades to from which to calculate the final grade
|
|
* @return A new grade representing the final grade calculated from grades
|
|
* @throws SizeException
|
|
*/
|
|
public Grade calculate(String key, List<Grade> grades) throws SizeException;
|
|
}
|