HiRISE

HiRISE.HiVali
Class PathUtility

java.lang.Object
  extended by HiRISE.HiVali.PathUtility

public class PathUtility
extends Object

Contains utility methods for looking up files in HiRISE_ROOT.

Version:
1.5
Author:
guym

Field Summary
static String ID
          CVS ID
 
Constructor Summary
PathUtility()
           
 
Method Summary
static boolean createDirectory(JFrame frame, String subSystemName, File dir)
          Launches a dialog to create a new directory within an existing subsystem.
static StringBuilder getDataDirectory(String subSystemName)
          Get the Data directory for a particular subsystem.
static String getDataDirectory(String subSystemName, Observation o)
          Get the path to an observation within a particular subsystem.
static StringBuilder getExtrasDirectory(String subSystemName)
          Get the Data directory for a particular subsystem.
static String getExtrasDirectory(String subSystemName, Observation o)
          Get the path to an observation within a particular subsystem.
static String getRawPath(Channel channel)
          Gets the name of the Raw Product for a given channel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

PathUtility

public PathUtility()
Method Detail

createDirectory

public static boolean createDirectory(JFrame frame,
                                      String subSystemName,
                                      File dir)
Launches a dialog to create a new directory within an existing subsystem. Write permission must exist.

Parameters:
frame -
subSystemName -
dir -
Returns:
True if the directory already exists or the user allowed creation.

getDataDirectory

public static StringBuilder getDataDirectory(String subSystemName)
Get the Data directory for a particular subsystem.

Parameters:
subSystemName -
Returns:
Full path to data directory

getExtrasDirectory

public static StringBuilder getExtrasDirectory(String subSystemName)
Get the Data directory for a particular subsystem.

Parameters:
subSystemName -
Returns:
Full path to data directory

getRawPath

public static String getRawPath(Channel channel)
                         throws Invalid_Argument_Exception
Gets the name of the Raw Product for a given channel

Parameters:
channel -
Returns:
Full path of a given output
Throws:
Invalid_Argument_Exception

getDataDirectory

public static String getDataDirectory(String subSystemName,
                                      Observation o)
                               throws Invalid_Argument_Exception
Get the path to an observation within a particular subsystem.

Parameters:
subSystemName -
o - The observation
Returns:
Absolute path
Throws:
Invalid_Argument_Exception - Bad Observation

getExtrasDirectory

public static String getExtrasDirectory(String subSystemName,
                                        Observation o)
                                 throws Invalid_Argument_Exception
Get the path to an observation within a particular subsystem.

Parameters:
subSystemName -
o - The observation
Returns:
Absolute path
Throws:
Invalid_Argument_Exception - Bad Observation

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona