public class SoundHelix extends Object implements Runnable
Constructor and Description |
---|
SoundHelix(URL url,
long randomSeed)
Constructor.
|
SoundHelix(URL url,
String songName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SongContext |
getNextSongFromQueue()
Removes and returns the next SongContext from the queue.
|
static void |
main(String[] args)
The main method.
|
void |
run()
Implements the functionality of the thread that generates songs.
|
public SoundHelix(URL url, long randomSeed)
url
- the SoundHelix XML URLrandomSeed
- the random seedpublic static void main(String[] args) throws Exception
args
- the argumentsException
- in case of any problempublic void run()
public SongContext getNextSongFromQueue() throws InterruptedException
InterruptedException
- if interrupted