Class GetListOfPRPs

java.lang.Object
  |
  +--GetListOfPRPs

public class GetListOfPRPs
extends java.lang.Object

Class GetListOfPRPs.java - read list of PRP files and create arrays of PRP file names and PRP names without the '.prp' and map '_' to ' '. This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government and Djamel Medjahed (SAIC-Frederick). As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file.

Version:
$Date: 2002/10/14 20:17:17 $ $Revision: $
Author:
P. Lemkin (NCI), Djamel Medjahed (SAIC), NCI-Frederick, Frederick, MD
See Also:
ProtPlot Home

This work was derived from MAExplorer under the Mozilla 1.1 Open Source Public License by Peter Lemkin of the National Cancer Institute, an agency of the United States Government subject to the limitations noted in the accompanying LEGAL file. See licence info on http://maexplorer.sourceforge.org/


Field Summary
 int nPRPs
          # of files read
private  ProtPlot prp
          instance of ProtPlot
 java.lang.String prpEndsWith
          optional end of file name to restrict which files are read
 java.lang.String[] prpFileNames
          List of PRP file names [0:nPRPs-1]
 java.lang.String[] prpNames
          List of PRP names [0:nPRPs-1]
private  UtilPRP util
          instance of UtilPRP
 
Constructor Summary
(package private) GetListOfPRPs(ProtPlot prp, java.lang.String prpEndsWith, java.lang.String msg)
          GetListOfPRPs() - constructor
 
Method Summary
 boolean addPRPfile(java.lang.String prpFileStr, java.lang.String prpEndsWith)
          addPRPfile() - Add prpFile to PRP database
 boolean GetListOfPRPsFile(java.lang.String msg)
          GetListOfPRPsFile() - read list of PRP files into data structure If prpEndsWith is not null then build DB from files ending in prpEndsWith, else build it from files ending in ".prp".
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

prp

private ProtPlot prp
instance of ProtPlot

util

private UtilPRP util
instance of UtilPRP

prpEndsWith

public java.lang.String prpEndsWith
optional end of file name to restrict which files are read

nPRPs

public int nPRPs
# of files read

prpFileNames

public java.lang.String[] prpFileNames
List of PRP file names [0:nPRPs-1]

prpNames

public java.lang.String[] prpNames
List of PRP names [0:nPRPs-1]
Constructor Detail

GetListOfPRPs

GetListOfPRPs(ProtPlot prp,
              java.lang.String prpEndsWith,
              java.lang.String msg)
GetListOfPRPs() - constructor
Parameters:
prp - is instance of ProtPlot
prpEndsWith - is an OPTIONAL string to restrict which files are read if this is not null. E.g. "_tot.prp" will only read files ending in "_tot.prp", etc.
msg - to use while reading
Method Detail

addPRPfile

public boolean addPRPfile(java.lang.String prpFileStr,
                          java.lang.String prpEndsWith)
addPRPfile() - Add prpFile to PRP database
Parameters:
prpFile - is the prot file name
prpEndsWith - is an OPTIONAL string to restrict which files are read if this is not null. E.g. "_tot.prp" will only read files ending in "_tot.prp", etc.

GetListOfPRPsFile

public boolean GetListOfPRPsFile(java.lang.String msg)
GetListOfPRPsFile() - read list of PRP files into data structure If prpEndsWith is not null then build DB from files ending in prpEndsWith, else build it from files ending in ".prp".
Parameters:
msg - to display while reading file.