net.sourceforge.atunes.kernel.modules.repository
Class RepositoryStats

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.repository.RepositoryStats
All Implemented Interfaces:
java.io.Serializable

public class RepositoryStats
extends java.lang.Object
implements java.io.Serializable

The Class RepositoryStats.

See Also:
Serialized Form

Constructor Summary
protected RepositoryStats()
          Instantiates a new repository stats.
 
Method Summary
 RankList<Album> getAlbumsRanking()
          Gets the albums ranking.
 RankList<Artist> getArtistsRanking()
          Gets the artists ranking.
 int getDifferentSongsPlayed()
          Gets the different songs played.
 RankList<AudioFile> getSongsRanking()
          Gets the songs ranking.
 java.util.Map<java.lang.String,SongStats> getSongsStats()
          Gets the songs stats.
 SongStats getStatsForFile(AudioFile song)
          Gets the stats for file.
 int getTotalPlays()
          Gets the total plays.
 void setAlbumsRanking(RankList<Album> albumsRanking)
          Sets the albums ranking.
 void setArtistsRanking(RankList<Artist> artistsRanking)
          Sets the artists ranking.
 void setDifferentSongsPlayed(int differentSongsPlayed)
          Sets the different songs played.
 void setSongsRanking(RankList<AudioFile> songsRanking)
          Sets the songs ranking.
 void setSongsStats(java.util.Map<java.lang.String,SongStats> songsStats)
          Sets the songs stats.
 void setTotalPlays(int totalPlays)
          Sets the total plays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryStats

protected RepositoryStats()
Instantiates a new repository stats.

Method Detail

getAlbumsRanking

public RankList<Album> getAlbumsRanking()
Gets the albums ranking.

Returns:
the albums ranking

getArtistsRanking

public RankList<Artist> getArtistsRanking()
Gets the artists ranking.

Returns:
the artists ranking

getDifferentSongsPlayed

public int getDifferentSongsPlayed()
Gets the different songs played.

Returns:
the different songs played

getSongsRanking

public RankList<AudioFile> getSongsRanking()
Gets the songs ranking.

Returns:
the songs ranking

getSongsStats

public java.util.Map<java.lang.String,SongStats> getSongsStats()
Gets the songs stats.

Returns:
the songs stats

getStatsForFile

public SongStats getStatsForFile(AudioFile song)
Gets the stats for file.

Parameters:
song - the song
Returns:
the stats for file

getTotalPlays

public int getTotalPlays()
Gets the total plays.

Returns:
the total plays

setAlbumsRanking

public void setAlbumsRanking(RankList<Album> albumsRanking)
Sets the albums ranking.

Parameters:
albumsRanking - the new albums ranking

setArtistsRanking

public void setArtistsRanking(RankList<Artist> artistsRanking)
Sets the artists ranking.

Parameters:
artistsRanking - the new artists ranking

setDifferentSongsPlayed

public void setDifferentSongsPlayed(int differentSongsPlayed)
Sets the different songs played.

Parameters:
differentSongsPlayed - the new different songs played

setSongsRanking

public void setSongsRanking(RankList<AudioFile> songsRanking)
Sets the songs ranking.

Parameters:
songsRanking - the new songs ranking

setSongsStats

public void setSongsStats(java.util.Map<java.lang.String,SongStats> songsStats)
Sets the songs stats.

Parameters:
songsStats - the songs stats

setTotalPlays

public void setTotalPlays(int totalPlays)
Sets the total plays.

Parameters:
totalPlays - the new total plays


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.