Coverage Report - org.jtheque.films.stats.services.impl.utils.StatsInformations
 
Classes in this File Line Coverage Branch Coverage Complexity
StatsInformations
N/A
N/A
1
 
 1  
 package org.jtheque.films.stats.services.impl.utils;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jfree.data.general.DefaultPieDataset;
 20  
 
 21  
 /**
 22  
  * The statistics information.
 23  
  *
 24  
  * @author Baptiste Wicht
 25  
  */
 26  
 public interface StatsInformations {
 27  
     /**
 28  
      * Return the total number of films.
 29  
      *
 30  
      * @return The number of films
 31  
      */
 32  
     int getNumberOfFilms();
 33  
 
 34  
     /**
 35  
      * Return the total number of actors.
 36  
      *
 37  
      * @return The number of actors
 38  
      */
 39  
     int getNumberOfActors();
 40  
 
 41  
     /**
 42  
      * Return the total number of realizers.
 43  
      *
 44  
      * @return The number of realizers
 45  
      */
 46  
     int getNumberOfRealizers();
 47  
 
 48  
     /**
 49  
      * Return the total duration of all the films.
 50  
      *
 51  
      * @return The duration of the films
 52  
      */
 53  
     int getTotalDurationOfFilms();
 54  
 
 55  
     /**
 56  
      * Return the stats of the films by kind.
 57  
      *
 58  
      * @return A dataset containing the stats of the films by kind
 59  
      */
 60  
     DefaultPieDataset getStatsOfFilmByKind();
 61  
 
 62  
     /**
 63  
      * Return the stats of the films by type.
 64  
      *
 65  
      * @return A dataset containing the stats of the films by type
 66  
      */
 67  
     DefaultPieDataset getStatsOfFilmByType();
 68  
 
 69  
     /**
 70  
      * Return the stats of the films by note.
 71  
      *
 72  
      * @return A dataset containing the stats of the films by note
 73  
      */
 74  
     DefaultPieDataset getStatsOfFilmByNote();
 75  
 
 76  
     /**
 77  
      * Return the stats of the actors by country.
 78  
      *
 79  
      * @return A dataset containing the stats of the actors by country
 80  
      */
 81  
     DefaultPieDataset getStatsOfActorsByCountry();
 82  
 
 83  
     /**
 84  
      * Return the stats of the actors by note.
 85  
      *
 86  
      * @return A dataset containing the stats of the actors by note
 87  
      */
 88  
     DefaultPieDataset getStatsOfActorsByNote();
 89  
 
 90  
     /**
 91  
      * Return the stats of the realizers by country.
 92  
      *
 93  
      * @return A dataset containing the stats of the realizers by country
 94  
      */
 95  
     DefaultPieDataset getStatsOfRealizersByCountry();
 96  
 
 97  
     /**
 98  
      * Return the stats of the realizers by note.
 99  
      *
 100  
      * @return A dataset containing the stats of the realizers by note
 101  
      */
 102  
     DefaultPieDataset getStatsOfRealizersByNote();
 103  
 
 104  
     /**
 105  
      * Generate the stats.
 106  
      */
 107  
     void generateStats();
 108  
 }