|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Purpose:
Interface file for classes which find RDR's related to a particular EDR.
See AbstractMarsImageFileFinder
for abstract implementation
of this interface.
Copyright 2003, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2003.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 08/23/2003 Nick Initial Release 12/01/2003 Nick Method getType() added. ============================================================================
Field Summary | |
static short |
EDR_TYPE
Static variable for EDR type images |
static short |
RDR_TYPE
Static variable for RDR type images |
Method Summary | |
boolean |
equals(MarsImageFileFinder other)
Returns true if this object and other is of same class type and have the same root. |
String |
extractEyeType(String imgPath,
short type)
Returns the camera eye type as denoted by the file organization and the imgPath parameter. |
String |
extractFilename(String path)
Returns the basename of a filepath, ie returns filename from filepath |
String |
extractImageType(String imgPath,
short type)
Returns the image type as denoted by the file organization and the imgPath parameter. |
Vector |
extractImageTypes(Vector imgPaths,
short type)
Returns the image types as denoted by the file organization and the imgPath parameters. |
String |
extractInstrument(String imgPath,
short type)
Returns the instrument type as denoted by the file organization and the imgPath parameter. |
Vector |
filterProducts(Vector edrs,
String instrument,
String fileType,
String eyeType,
boolean allowThumbs)
Returns a subset of entries from edrs vector which are of the same instrument as specified by instrumentName, and permitted by the allowThumbs flag. |
String |
formatSol(int sol)
Formats the SOL as a string based on the directory structure |
String[] |
getCameraEyeTypes()
Returns a String array of camera eye types. |
Vector |
getEdrs()
Returns a vector of EDR paths found according to file heirarchy. |
String |
getInitialSol()
Returns a list of the SOL range of a given file finder. |
String[] |
getInstrumentTypes()
Returns a String array of instrument names. |
Vector |
getRdrs(String edrFile)
Returns a vector of RDR paths found according to file heirarchy generated by the EDR parameter name. |
String[] |
getRdrTypes()
Returns a String array of RDR types. |
String |
getRoot()
Returns string of the root of the file organization. |
File |
getRootFile()
Returns File of the root of the file organization. |
List |
getSolRange()
Returns a list of the SOL range of a given file finder. |
String |
getSourceProductPath(String rdrPath)
Returns the path of the source EDR for nominal RDR products, or the path of the linearized version of that EDR for linearized RDR products. |
String |
getType()
Returns string identifier of the image file finder type. |
boolean |
isThumbnail(String imgFile)
Determines if image represented by imgFile is a thumbnail. |
boolean |
isThumbnailType(String type)
Determines if product type represented by type is a thumbnail. |
boolean |
isTypeNominal(String type)
Returns true if the type parameter is raw, false otherwise (e.g. |
boolean |
isTypeSource(String type)
Returns true if the type parameter is a source, false otherwise. |
Vector |
removeThumbnails(Vector inImages)
Given a vector of image file names, uses isThumbnail method to determine if file should be included in the returned Vector. |
void |
setRoot(String newRoot)
Sets the root of the file organization. |
Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
Field Detail |
public static final short EDR_TYPE
public static final short RDR_TYPE
Method Detail |
public void setRoot(String newRoot) throws IOException
newRoot
- Path of the root.
IOException
- If directory specified by newRoot
parameter does not exist or cannot be read.public String getRoot()
public File getRootFile()
public String getType()
public Vector getEdrs() throws IOException
IOException
- if I/O error occurspublic Vector getRdrs(String edrFile) throws IOException
edrFile
- Original image file from which matching RDR's are generated.
IOException
- if I/O error occurspublic Vector filterProducts(Vector edrs, String instrument, String fileType, String eyeType, boolean allowThumbs)
edrs
- Sets of EDR pathnames, specific to organization type.instrument
- Name of instrument, "" and null
for
all instruments.fileType
- EDR file type , "" and null
for
all file types.eyeType
- Camera eye type , "" and null
for
all camera eye types.allowThumbs
- Flag for thumbnails, if true thumbnails are
allowed, else they will be filtered out.
public String extractFilename(String path)
path
- Filepath of the file whose name is to be extracted.
public String extractInstrument(String imgPath, short type)
imgPath
- Complete path of the edr file.type
- Type of file (choose from MarsImageFileFinder.EDR_TYPE,
MarsImageFileFinder.RDR_TYPE)
public String extractImageType(String imgPath, short type)
imgPath
- Complete path of the edr file.type
- Type of file (choose from MarsImageFileFinder.EDR_TYPE,
MarsImageFileFinder.RDR_TYPE)
public Vector extractImageTypes(Vector imgPaths, short type)
type
- Type of file (choose from MarsImageFileFinder.EDR_TYPE,
MarsImageFileFinder.RDR_TYPE)
public String extractEyeType(String imgPath, short type)
imgPath
- Complete path of the edr file.type
- Type of file (choose from MarsImageFileFinder.EDR_TYPE,
MarsImageFileFinder.RDR_TYPE)
public boolean isThumbnail(String imgFile)
imgFile
- Filename of the image.
public boolean isThumbnailType(String type)
type
- Product type.
public String[] getInstrumentTypes()
public String[] getRdrTypes()
public String[] getCameraEyeTypes()
public Vector removeThumbnails(Vector inImages)
inImages
- Vector of image pathnamespublic boolean equals(MarsImageFileFinder other)
other
- MartImageFileFinder object to be compared to
public String formatSol(int sol)
public String getSourceProductPath(String rdrPath) throws IOException
rdrPath
- Path of the RDR product.
IOException
public boolean isTypeNominal(String type)
public boolean isTypeSource(String type)
public List getSolRange()
public String getInitialSol()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |