com.webkitchen.brainathlon.data
Class Configuration

java.lang.Object
  extended by com.webkitchen.brainathlon.data.Configuration

public class Configuration
extends java.lang.Object

Handles reading and writing to the XML configuration files


Method Summary
static BandIncreaseConfiguration getBandIncreaseConfiguration()
           
static java.lang.Integer[] getChannels()
           
static java.lang.String getCourseOverSongFile()
           
static boolean getDebugMode()
           
static DualBandRatioConfiguration getDualBandRatioConfiguration()
           
static int getSampleRate()
           
static SustainedIncreaseConfiguration getSustainedIncreaseConfiguration()
           
static java.lang.String getUserLogFileDirectory()
           
static void load()
          Load configuration information.
static void save()
          Save course configurations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

save

public static void save()
                 throws java.io.IOException
Save course configurations

Throws:
java.io.IOException - if we are unable to save

load

public static void load()
Load configuration information. This method must be called before calling any other methods.


getSampleRate

public static int getSampleRate()

getChannels

public static java.lang.Integer[] getChannels()

getCourseOverSongFile

public static java.lang.String getCourseOverSongFile()

getDebugMode

public static boolean getDebugMode()

getUserLogFileDirectory

public static java.lang.String getUserLogFileDirectory()

getBandIncreaseConfiguration

public static BandIncreaseConfiguration getBandIncreaseConfiguration()

getSustainedIncreaseConfiguration

public static SustainedIncreaseConfiguration getSustainedIncreaseConfiguration()

getDualBandRatioConfiguration

public static DualBandRatioConfiguration getDualBandRatioConfiguration()