|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--RLO
This class is used to specify the .R script LayOuts (RLO) analyses. In addition to the name of the .R script file and menu name, it also encodes the environment required for data input (output) to (from) R as well as actions to be taken after the .R script has been evaluated by R. Such actions may include bringing data back into the client or displaying plots generated by R.
Field Summary | |
(package private) java.lang.String |
date
RLO creation date |
(package private) int |
genRbits
GenR Bits is a bit pattern of selected (R_GENR_xxxx) options used during .R script generation. |
(package private) int |
id
sequence # of description |
(package private) java.lang.String[] |
inputDataFileNames
Name of input file if any (if not null) |
(package private) int[] |
inputDataTypes
R_DATA_TYPE_xxxx type of input file if any |
(package private) java.lang.String |
menuName
Analysis menu name |
(package private) java.lang.String |
menuStubName
Desired client menu stub. |
(package private) int |
nInputFiles
# of input files if any, 0 if none |
(package private) int |
nOutputFiles
# of output files if any, 0 if none |
(package private) int |
nSetR2ClientFiles
# of output files used to set R to Client data if any, 0 if none |
(package private) java.lang.String[] |
outputDataFileNames
List of output files if any, null if none |
(package private) int[] |
outputDataTypes
List of R_FILE_TYPE_xxxx types of output files if any, null if none. |
(package private) int |
processBits
Process Bits is a bit pattern of selected (R_PB_xxxx) options used during processing |
private static RevalBase |
rEvalBase
|
(package private) java.lang.String |
RscriptName
Name of .R script file |
(package private) java.lang.String |
scriptSpecificRoptions
Optional script Specific R startup options. |
(package private) java.lang.String[] |
setR2ClientFileNames
List of output file names used to set R to Client data if any, null if none |
(package private) java.lang.String[] |
setR2ClientObjNames
List of client object names used to set R to Client data if any, null if none. |
(package private) int[] |
setR2ClientObjTypes
List of R_SET_R2CLIENT__xxxx types of output files if any, null if none. |
Constructor Summary | |
(package private) |
RLO()
RLO() - constructor instance to create empty RLO |
(package private) |
RLO(RevalBase rEvalBase,
int maxAnalyses)
RLO() - constructor for initial database allocation |
Method Summary | |
(package private) int |
addRLO(java.lang.String menuName,
java.lang.String menuStubName,
java.lang.String RscriptName,
java.lang.String[] inputDataFileNames,
int[] inputDataTypes,
int processBits,
int genRbits,
java.lang.String[] outputDataFileNames,
int[] outputDataTypes,
java.lang.String[] setR2ClientFileNames,
java.lang.String[] setR2ClientObjNames,
int[] setR2ClientObjTypes,
java.lang.String scriptSpecificRoptions)
addRLO() - add new R LayOut (RLO) instance to the RLO database. |
(package private) void |
clearRLOdb()
clearRLOdb() - clear list of R LayOuts analyses in the database |
(package private) RLO |
getCurrentRLO()
getCurrentRLO() - return current RLO |
(package private) int[] |
getListofRLOids()
getListofRLOids() - get list of all IDs |
(package private) java.lang.String[] |
getListofRLOmenuNames()
getListofRLOmenuNames() - get list of all menuNames |
(package private) java.lang.String[] |
getListofRLOscriptNames()
getListofRLOscriptNames() - get list of all R script names |
(package private) RLO |
getRLObyID(int id)
getRLObyID() - get the RLO by id |
(package private) RLO |
getRLObyMenuName(java.lang.String menuName)
getRLObyMenuName() - get the RLO by menuName |
(package private) RLO |
getRLObyRscriptName(java.lang.String RscriptName)
getRLObyRscriptName() - get the RLO by RscriptName |
(package private) int |
getRLOidByRscriptName(java.lang.String rsName)
getRLOidByRscriptName() - get the current RLO analysis method id by RscriptName |
(package private) java.lang.String |
getRLOinputFile(int lookForFileType,
int nth)
getRLOinputFile() get the nth Input Data file by input file type. |
(package private) java.lang.String |
getRLOoutFile(int lookForFileType,
int nth)
getRLOoutFile() get the nth Output Data file by out file type. |
(package private) int |
newRLO()
newRLO() - create new empty R LayOut (RLO) instance to RLO database. |
(package private) void |
regrowRLOdbIfNeeded()
regrowRLOdbIfNeeded() - grow RLO database if need more space |
(package private) boolean |
rmvRLO(int rloIdToRemove)
rmvRLO() - remove the RLO from the analyses database This removes the .rlo file from the RLO/ directory and the .R script file from the R/ directory. |
(package private) void |
setCurrentRLO(int id)
setCurrentRLO() - set the current RLO analysis by id |
(package private) boolean |
setRLO(int rloID,
java.lang.String menuName,
java.lang.String menuStubName,
java.lang.String RscriptName,
java.lang.String[] inputDataFileNames,
int[] inputDataTypes,
int processBits,
int genRbits,
java.lang.String[] outputDataFileNames,
int[] outputDataTypes,
java.lang.String[] setR2ClientFileNames,
java.lang.String[] setR2ClientObjNames,
int[] setR2ClientObjTypes,
java.lang.String scriptSpecificRoptions)
setRLO() - set R LayOut (RLO) instance to the RLO database. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static RevalBase rEvalBase
int id
java.lang.String menuName
java.lang.String menuStubName
java.lang.String RscriptName
java.lang.String date
int nInputFiles
java.lang.String[] inputDataFileNames
int[] inputDataTypes
int processBits
int genRbits
int nOutputFiles
java.lang.String[] outputDataFileNames
int[] outputDataTypes
int nSetR2ClientFiles
java.lang.String[] setR2ClientFileNames
java.lang.String[] setR2ClientObjNames
int[] setR2ClientObjTypes
java.lang.String scriptSpecificRoptions
Constructor Detail |
RLO(RevalBase rEvalBase, int maxAnalyses)
rtst
- (while debugging for access display)rEvalBase
- maxAnalyses
- to set up the databaseRLO()
Method Detail |
int newRLO()
void regrowRLOdbIfNeeded()
int addRLO(java.lang.String menuName, java.lang.String menuStubName, java.lang.String RscriptName, java.lang.String[] inputDataFileNames, int[] inputDataTypes, int processBits, int genRbits, java.lang.String[] outputDataFileNames, int[] outputDataTypes, java.lang.String[] setR2ClientFileNames, java.lang.String[] setR2ClientObjNames, int[] setR2ClientObjTypes, java.lang.String scriptSpecificRoptions)
E.g., the following is an example that exports various types (4) of client data, generates 4 types of output files, and sets the client state from 2 of those files.
menuName
- text description of the RLO entrymenuStubName
- used by client to put RLO menu entry in a
particular menu.RscriptName
- is the name of the .R fileinputDataFileNames
- opt. list of R input data file namesinputDataTypes
- corresponding list of R input data file types
valuesprocessBits
- set for use during evalgenRbits
- set and used during edit by R script GUIoutputDataFileNames
- opt. list of R output data file namesoutputDataTypes
- corresponding list of R output data file types
valuessetR2ClientFileNames
- opt. list of action file names to set R
output data to client state objectssetR2ClientObjNames
- opt. list of client action object names to
set R output data to client state objectssetR2ClientObjType
- opt. list of client object type values
to set R output data to client state objectsscriptSpecificRoptions
- boolean setRLO(int rloID, java.lang.String menuName, java.lang.String menuStubName, java.lang.String RscriptName, java.lang.String[] inputDataFileNames, int[] inputDataTypes, int processBits, int genRbits, java.lang.String[] outputDataFileNames, int[] outputDataTypes, java.lang.String[] setR2ClientFileNames, java.lang.String[] setR2ClientObjNames, int[] setR2ClientObjTypes, java.lang.String scriptSpecificRoptions)
E.g., the following is an example that exports various types (4) of client data, generates 4 types of output files, and sets the client state from 2 of those files.
menuName
- text description of the RLO entrymenuStubName
- used by client to put RLO menu entry in a
particular menu.RscriptName
- is the name of the .R fileinputDataFileNames
- opt. list of R input data file namesinputDataTypes
- corresponding list of R input data file types
valuesprocessBits
- used during evalgenRbits
- set and used used during edit by R script GUIoutputDataFileNames
- opt. list of R output data file namesoutputDataTypes
- corresponding list of R output data file types
valuessetR2ClientFileNames
- opt. list of action file names to set R
output data to client state objectssetR2ClientObjNames
- opt. list of client action object names to
set R output data to client state objectssetR2ClientObjType
- opt. list of client object type values
to set R output data to client state objectsscriptSpecificRoptions
- boolean rmvRLO(int rloIdToRemove)
rloIdToRemove
- to removevoid clearRLOdb()
int getRLOidByRscriptName(java.lang.String rsName)
rsName
- is the RscriptName to lookup in the databasevoid setCurrentRLO(int id)
RLO getCurrentRLO()
java.lang.String[] getListofRLOscriptNames()
java.lang.String[] getListofRLOmenuNames()
int[] getListofRLOids()
RLO getRLObyMenuName(java.lang.String menuName)
RLO getRLObyRscriptName(java.lang.String RscriptName)
RLO getRLObyID(int id)
id
- to use in searching analyses databasejava.lang.String getRLOoutFile(int lookForFileType, int nth)
lookForFileType
- is one of R_FILE_TYPE_xxxx valuesnth
- is the nth instance to return (counting from 1 - not 0!)getCurrentRLO()
java.lang.String getRLOinputFile(int lookForFileType, int nth)
lookForFileType
- is one of R_FILE_TYPE_xxxx valuesnth
- is the nth instance to return (counting from 1 - not 0!)getCurrentRLO()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |