Class BasicScoreList

java.lang.Object
be.gaudry.model.edu.score.BasicScoreList
All Implemented Interfaces:
IClearable
Direct Known Subclasses:
CourseScoreList, StudentScoreList

public class BasicScoreList extends Object implements IClearable
Maintain scores and provide some features like average etc.
Since:
1.0 Jan 4,2009, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Constructor Details

    • BasicScoreList

      public BasicScoreList()
    • BasicScoreList

      public BasicScoreList(List<Quotation> quotations)
  • Method Details

    • add

      public void add(Quotation quotation)
    • remove

      public void remove(Quotation quotation)
    • getAverage

      public Quotation getAverage()
      Returns:
      computed quotation with the average /10
    • getAverage

      public Quotation getAverage(boolean scaled)
      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

      public List<Quotation> getQuotations()
      Returns:
      the quotations
    • setQuotations

      public void setQuotations(List<Quotation> quotations)
      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 interface IClearable