|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DJ
Method Summary | |
---|---|
Song |
choose()
Lets the DJ choose a new Song to play, using the SongSelector to select a song from the candidates generated by the CandidateSelector |
void |
confirmPlay()
Call this when the currently playing Song has been played completely. |
void |
confirmSkip()
Call this when the currently playing Song has indeed be skipped. |
CandidateSelector |
getCandidateSelector()
|
Song |
getCurrentSong()
|
MusiController |
getMusiController()
|
int |
getPlayingTime()
|
java.util.List<java.lang.Long> |
getRequests()
|
SongSelector |
getSongSelector()
|
IUser |
getUser()
|
boolean |
mustSkip()
|
java.util.List<java.lang.Long> |
peek(int count)
Takes a look into the future, and tells which Songs will be played next. |
void |
playSong(long songid)
Tells the DJ to skip the currently playing Song, and start playing a new one. |
void |
requestSong(long songid)
Requests a song. |
void |
setCandidateSelector(CandidateSelector selector)
|
void |
setMusiController(MusiController musicontroller)
|
void |
setPlaying(boolean playing)
Sets the state of the DJ. |
void |
setPlayingTime(int millis)
To be used by the StreamService, to provide feedback to the DJ about the amount of milliseconds that have been played of the current ssong. |
void |
setSongSelector(SongSelector selector)
|
void |
setUser(IUser user)
|
void |
skipSong()
Tells the DJ to skip the currently playing Song. |
void |
unrequestSong(long songid)
Unrequests a previously requested Song. |
Method Detail |
---|
void setMusiController(MusiController musicontroller)
MusiController getMusiController()
void setSongSelector(SongSelector selector)
SongSelector getSongSelector()
CandidateSelector getCandidateSelector()
void setCandidateSelector(CandidateSelector selector)
void setUser(IUser user)
IUser getUser()
void requestSong(long songid)
songid
- The Id of the Song.void unrequestSong(long songid)
songid
- The Id of the Song.void skipSong()
void playSong(long songid)
songid
- The Id of the new Song to be played.boolean mustSkip()
void confirmSkip()
void confirmPlay()
void setPlaying(boolean playing)
playing
- Use True, if the DJ is playing or False otherwise.java.util.List<java.lang.Long> getRequests()
Song choose()
java.util.List<java.lang.Long> peek(int count)
count
- The amount of Songs to predict (maxed at 15).
Song getCurrentSong()
void setPlayingTime(int millis)
millis
- The amount of milliseconds the current song has been played.int getPlayingTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |