Advertisement
LucasSousa

StatisticsProvider (main statics provider class)

Oct 21st, 2015
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.74 KB | None | 0 0
  1. package br.estatisticas;
  2.  
  3. import br.modelos.Solve;
  4. import java.util.ArrayList;
  5.  
  6. /**
  7.  * Criado por Lucas Sousa em 21/10/2015.
  8.  */
  9. public class StatisticsProvider {
  10.     private ArrayList<Solve> solves;
  11.  
  12.     public StatisticsProvider(ArrayList<Solve> solves) {
  13.         this.solves = solves;
  14.     }
  15.  
  16.     public long getBest5Value() {
  17.         return new Best5(solves).getBest5Value();
  18.     }
  19.  
  20.     public long getBest12Value() {
  21.         return new Best12(solves).getBest12Value();
  22.     }
  23.  
  24.     public ArrayList<String> getBest12Solves() {
  25.         return new Best12(solves).getBest12Solves();
  26.     }
  27.  
  28.     public ArrayList<String> getBest5Solves() {
  29.         return new Best5(solves).getBest5Solves();
  30.     }
  31.  
  32.     public long getCurrent5Value() {
  33.         return new Current5(solves).getCurrent5Value();
  34.     }
  35.  
  36.     public ArrayList<String> getCurrent5Solves() {
  37.         return new Current5(solves).getCurrent5Solves();
  38.     }
  39.  
  40.     public long getCurrent12Value() {
  41.         return new Current12(solves).getCurrent12Value();
  42.     }
  43.  
  44.     public ArrayList<String> getCurrent12Solves() {
  45.         return new Current12(solves).getCurrent12Solves();
  46.     }
  47.  
  48.     public long getOverallMeanValue() {
  49.         return new OverallMean(solves).getOverallMeanValue();
  50.     }
  51.  
  52.     public long getOverallAverageValue() {
  53.         return new OverallAverage(solves).getOverallAverage();
  54.     }
  55.  
  56.     public long getBestValue() {
  57.         return new Best(solves).getBestValue();
  58.     }
  59.  
  60.     public String getBestSolve() {
  61.         return new Best(solves).getBestSolve();
  62.     }
  63.  
  64.     public long getWorstValue() {
  65.         return new Worst(solves).getWorstValue();
  66.     }
  67.  
  68.     public String getWorstSolve() {
  69.         return new Worst(solves).getWorstSolve();
  70.     }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement