|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CandidateSelector
Randomly selects a preset number of songs from the song pool. The Candidate selector does not know the user for which the candidates are selected.
Method Summary | |
---|---|
void |
addToCandidates(Song song)
Adds a Song to the pool. |
int |
getCandidateCount()
Getter for the number of candidates that will be returned in a list of candidate Songs. |
void |
playRequestsAtRandom()
Instructs the selector to play the requested songs in random order. |
void |
playRequestsInOrder()
Instructs the selector to select requested songs in the order of entry. |
void |
removeFromCandidates(Song song)
Removes a Song from the pool. |
boolean |
requestsPlayedAtRandom()
Returns true if the requests will be played at random or false otherwise. |
boolean |
requestsPlayedInOrder()
Returns true if the requests will be played in order of entry or false otherwise. |
java.util.List<Song> |
selectCandidates(int count)
Selects a selection of candidate-Songs from the pool. |
java.util.List<Song> |
selectCandidates(java.util.List<java.lang.Long> requests)
Selects candidate-Songs from the pool. |
Method Detail |
---|
java.util.List<Song> selectCandidates(java.util.List<java.lang.Long> requests)
requests
- An optional list of requested songs.
java.util.List<Song> selectCandidates(int count)
count
- The amount of candidates to select. When this value is
bigger than the amount of songs available in the pool, a
as much Songs as possible are returned.
void addToCandidates(Song song)
song
- The Song to add.void removeFromCandidates(Song song)
song
- The Song to remove.boolean requestsPlayedAtRandom()
boolean requestsPlayedInOrder()
void playRequestsInOrder()
void playRequestsAtRandom()
int getCandidateCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |