sbrt.shell
Class WorkingDirectory

java.lang.Object
  extended by sbrt.shell.WorkingDirectory

public class WorkingDirectory
extends java.lang.Object

This class is used to manage the working directory of the SBRT.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
WorkingDirectory()
           
 
Method Summary
static java.io.File get()
          Returns the current working directory.
static void set(java.io.File workingDir)
          Sets the working directory to the provided value.
static void set(java.lang.String workingDir)
          Sets the working directory to the provided value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingDirectory

public WorkingDirectory()
Method Detail

get

public static java.io.File get()
Returns the current working directory.

Returns:
the current working directory.

set

public static void set(java.io.File workingDir)
Sets the working directory to the provided value.

Parameters:
workingDir - the new working directory.
Throws:
ApplicationException - if the provided file is not a directory.

set

public static void set(java.lang.String workingDir)
Sets the working directory to the provided value.

Parameters:
workingDir - the name of the new working directory.
Throws:
ApplicationException - if the specified file is not a directory.