net.sourceforge.pavlov.randommedia
Class RandomRightWrongAudioFactory

java.lang.Object
  extended by net.sourceforge.pavlov.randommedia.RandomRightWrongAudioFactory
All Implemented Interfaces:
RandomURLProvider

public class RandomRightWrongAudioFactory
extends Object
implements RandomURLProvider

FIXME: rewrite doc


Constructor Summary
RandomRightWrongAudioFactory()
          Creates a new RandomRightWrongAudioFactory instance.
RandomRightWrongAudioFactory(File rightDirectory, File wrongDirectory)
          Creates a new RandomRightWrongAudioFactory instance.
 
Method Summary
 void clearCache()
          Describe clearCache method here.
 int getNumberOfDisabledItems()
          Returns a count of items in disabled directories.
 int getNumberOfEnabledItems()
          Returns a count of items in enabled directories.
 int getNumberOfTotalItems()
          Returns a count of items in enabled and disabled directories.
 URL getRandomURL()
          Describe getRandomURL method here.
 void playRandomRightClip()
          Describe playRandomRightClip method here.
 void playRandomWrongClip()
          Describe playRandomWrongClip method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomRightWrongAudioFactory

public RandomRightWrongAudioFactory()
Creates a new RandomRightWrongAudioFactory instance.


RandomRightWrongAudioFactory

public RandomRightWrongAudioFactory(File rightDirectory,
                                    File wrongDirectory)
Creates a new RandomRightWrongAudioFactory instance.

Method Detail

clearCache

public void clearCache()
Describe clearCache method here.


playRandomRightClip

public void playRandomRightClip()
Describe playRandomRightClip method here.


playRandomWrongClip

public void playRandomWrongClip()
Describe playRandomWrongClip method here.


getNumberOfEnabledItems

public int getNumberOfEnabledItems()
Returns a count of items in enabled directories.

Returns:
an int value

getNumberOfTotalItems

public int getNumberOfTotalItems()
Returns a count of items in enabled and disabled directories.

Returns:
an int value

getNumberOfDisabledItems

public int getNumberOfDisabledItems()
Returns a count of items in disabled directories.

Returns:
an int value

getRandomURL

public URL getRandomURL()
Describe getRandomURL method here.

Specified by:
getRandomURL in interface RandomURLProvider
Returns:
an URL value