Package be.gaudry.model.edu.score
Class BasicScoreList
java.lang.Object
be.gaudry.model.edu.score.BasicScoreList
- All Implemented Interfaces:
IClearable
- Direct Known Subclasses:
CourseScoreList
,StudentScoreList
Maintain scores and provide some features like average etc.
- Since:
- 1.0 Jan 4,2009, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
The expected behavior of the implementation is to put the informations into an uninitialized state.getAverage(boolean scaled)
void
void
setQuotations(List<Quotation> quotations)
-
Constructor Details
-
BasicScoreList
public BasicScoreList() -
BasicScoreList
-
-
Method Details
-
add
-
remove
-
getAverage
- Returns:
- computed quotation with the average /10
-
getAverage
- Parameters:
scaled
- set true if the maximum of each quotation is important (in other words if not all the quotations have the same maximum)- Returns:
- computed quotation with the average /10
-
getQuotations
- Returns:
- the quotations
-
setQuotations
- Parameters:
quotations
- the quotations to set
-
clear
public void clear()Description copied from interface:IClearable
The expected behavior of the implementation is to put the informations into an uninitialized state. See the implementation to know the fields affected by this method.- Specified by:
clear
in interfaceIClearable
-