org.simbrain.world.odorworld
Class OdorWorldPreferences

java.lang.Object
  extended by org.simbrain.world.odorworld.OdorWorldPreferences

public final class OdorWorldPreferences
extends Object

OdorWorldPreferences handles storage and retrieval of user preferences, e.g. the current directory.


Field Summary
static String FS
          System specific file system seperator.
 
Method Summary
static String getCurrentDirectory()
          Return the current directory.
static String getDefaultCurrentDirectory()
          Return the default current directory.
static void restoreDefaults()
          Restore defaults.
static void saveAll()
          Save all user preferences.
static void setCurrentDirectory(String dir)
          Sets the current directory where worlds are saved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FS

public static final String FS
System specific file system seperator.

Method Detail

saveAll

public static void saveAll()
Save all user preferences.


restoreDefaults

public static void restoreDefaults()
Restore defaults.


setCurrentDirectory

public static void setCurrentDirectory(String dir)
Sets the current directory where worlds are saved.

Parameters:
dir - Location to save worlds

getCurrentDirectory

public static String getCurrentDirectory()
Return the current directory.

Returns:
the current directory

getDefaultCurrentDirectory

public static String getDefaultCurrentDirectory()
Return the default current directory.

Returns:
the default current directory