|
: Class ParseAcd
org.emboss.jemboss.parser
|
Constructor Summary | |
ParseAcd(java.lang.String acdText,
boolean groups)
The constructor takes the ACD as a string. |
Method Summary | |
protected java.lang.String |
formatHelpText(java.lang.String help)
Limits the length of the line for the help text used in the tool tips. |
ApplicationFields[] |
getApplicationFields()
Gets the application field. |
double |
getDefaultParamValueDbl(int field)
Return a double default parameter |
java.lang.String |
getDefaultParamValueStr(int field)
Gets a String default parameter. |
Dependent[] |
getDependents()
Gets the dependents associated with the ACD. |
java.lang.String |
getExpectedCPU()
Finds any expected cpu level indicator (low, medium, high) |
java.lang.String |
getGroups()
Gets the list of groups defined by setGroups. |
int |
getGuiHandleNumber(int field)
Gets the handle for a gui component on the Jemboss form. |
java.lang.String |
getHelpParamValue(int field)
Finds the help parameter in an ACD field. |
java.lang.String |
getInfoParamValue(int field)
Finds the prompt, info or help parameter in an ACD field, in that order. |
java.lang.String[] |
getList(int field)
Used for a list data type to put the list items in a String array. |
java.lang.String |
getListLabel(int field,
int index)
For a list data type determine the appropriate String entry. |
int |
getListOrSelectDefault()
Use this after getList or getSelect to retrieve default |
java.lang.String |
getMaxParam(int field)
Locates the max parameter in a field and returns it as a String. |
java.lang.String |
getMinParam(int field)
Locates the min parameter in a field and returns it as a String. |
int |
getNumBool()
Gets the number of boolean data types in the ACD. |
int |
getNumList()
Gets the number of list & selection data types in the ACD, using single list selection |
int |
getNumMList()
Gets the number of list & selection data types in the ACD, using multiple list selection |
int |
getNumNfloat()
Gets the number of float data types in the ACD. |
int |
getNumNint()
Gets the number of int data types in the ACD. |
int |
getNumOfDependents()
Gets the number of dependent parameters in the ACD. |
int |
getNumofFields()
Gets the number of fields in the ACD file. |
int |
getNumofParams(int field)
Gets the number of parameters in a ACD field. |
int |
getNumRange()
|
int |
getNumSection()
Gets the number of sections in the ACD |
int |
getNumSeq()
Gets the number of seqset, seqall & sequence data types in the ACD |
int |
getNumSubsection()
Gets the number of nested sections in the ACD |
int |
getNumTextf()
Gets the number of float, string, seqout, outfile, infile, regexp, codon & featout data types in the ACD. |
java.lang.String |
getOutputSequenceFile(int field)
Gets the name of the output sequence field (seqout). |
java.lang.String |
getParameterAttribute(int field,
int param)
Get a specified parameter attribute. |
double |
getParamValueDbl(int field,
int param)
Gets the double value of a parameter. |
java.lang.String |
getParamValueStr(int field,
int param)
Gets the String value of a parameter. |
java.lang.String |
getPrimaryGroup()
Gets the primary groups the application is a member of. |
java.lang.String |
getSecondaryGroup()
Gets the secondary groups the application is a member of. |
java.lang.String[] |
getSelect(int field)
Used for a selection type to put the list items in a String array. |
boolean |
isBatchable()
Finds if the program is identifies as being able to run in a batch queue |
boolean |
isDefaultParamValueStr(int field)
Determine if there is a default parameter in a field of the ACD. |
boolean |
isDependents(java.lang.String attr,
int field,
int numofFields)
Always start by calling isDependents(), which calculates the number of dependents and construct the Dependent array. |
boolean |
isMaxParamValue(int field)
Determine if there is a max parameter in a field of the ACD. |
boolean |
isMinParamValue(int field)
Determine if there is a min parameter in a field of the ACD. |
boolean |
isOptionalParam()
Determine if there is a optional parameter in any field of the ACD. |
boolean |
isOptionalParamValue(int field)
Determine if there is a optional parameter in a field of the ACD. |
boolean |
isOutputFile(int field)
Determine if a field is data type outfile. |
boolean |
isOutputGraph(int field)
Determine if a field is data type graph or xygraph. |
boolean |
isOutputSequence(int field)
Determine if data type of a field is seqout. |
boolean |
isParamValueStr(int field,
int param)
Determine if the value of the parameter is a String. |
boolean |
isPrimaryGroup()
True if a primary group is defined. |
boolean |
isSecondaryGroup()
True if a secondary group is defined. |
int |
parseParam(java.io.BufferedReader in,
java.io.StreamTokenizer st)
Parses each parameter in a field |
void |
setGroups(int field)
Finds the primary and secondary groups, defined in the ACD file. |
void |
setParamValueStr(int field,
int param,
java.lang.String svalue)
|
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ParseAcd(java.lang.String acdText, boolean groups)
acdText
- String representation of the ACD filegroups
- Boolean determing whether just to retieve the groupsMethod Detail |
public ApplicationFields[] getApplicationFields()
public int getGuiHandleNumber(int field)
int
- field number in the ACD filepublic int getNumTextf()
public int getNumNint()
public int getNumNfloat()
public int getNumBool()
public int getNumSeq()
public int getNumList()
public int getNumMList()
public int getNumRange()
public int getNumSection()
public int getNumSubsection()
public java.lang.String getParameterAttribute(int field, int param)
int
- field number in the ACD fileint
- parameter number in that fieldpublic boolean isParamValueStr(int field, int param)
public java.lang.String getParamValueStr(int field, int param)
public void setParamValueStr(int field, int param, java.lang.String svalue)
public double getParamValueDbl(int field, int param)
public boolean isDefaultParamValueStr(int field)
int
- field numberpublic double getDefaultParamValueDbl(int field)
int
- field numberpublic boolean isDependents(java.lang.String attr, int field, int numofFields)
String
- name of the attributeint
- field numberint
- toatal number of fieldspublic Dependent[] getDependents()
public int getNumOfDependents()
public java.lang.String getMinParam(int field)
int
- field numberpublic java.lang.String getMaxParam(int field)
int
- field numberpublic boolean isMinParamValue(int field)
int
- field numberpublic boolean isMaxParamValue(int field)
int
- field numberpublic java.lang.String getInfoParamValue(int field)
int
- field numberpublic java.lang.String getHelpParamValue(int field)
int
- field numberpublic boolean isBatchable()
public java.lang.String getExpectedCPU()
protected java.lang.String formatHelpText(java.lang.String help)
String
- help textpublic boolean isOptionalParamValue(int field)
int
- field numberpublic boolean isOutputSequence(int field)
int
- field numberpublic java.lang.String getOutputSequenceFile(int field)
int
- field numberpublic boolean isOutputGraph(int field)
int
- field numberpublic boolean isOutputFile(int field)
int
- field numberpublic void setGroups(int field)
int
- field numberpublic boolean isPrimaryGroup()
public boolean isSecondaryGroup()
public java.lang.String getPrimaryGroup()
public java.lang.String getSecondaryGroup()
public java.lang.String getGroups()
public java.lang.String getDefaultParamValueStr(int field)
int
- field numberpublic java.lang.String[] getList(int field)
int
- field numberpublic java.lang.String getListLabel(int field, int index)
int
- field numberint
- index into the listpublic java.lang.String[] getSelect(int field)
int
- field numberpublic int getListOrSelectDefault()
public boolean isOptionalParam()
True
- if there is an optional parameter in any field.public int getNumofFields()
public int getNumofParams(int field)
int
- field numberpublic int parseParam(java.io.BufferedReader in, java.io.StreamTokenizer st) throws java.io.IOException
BufferedReader
- StreamTokenizer
-
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |