|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MJAbase | +--MJAcondition
MAExplorer Open Java API class to access MJAcondition methods and data structures. This contains methods for manipulating condition lists of samples and ordered lists of condition lists. Conditions are sets of samples. You may also have ordered lists of conditions. The latter would be the case in an ordered list of conditions (eg. cell cycle points) with replicate samples in each condition.
List of methods available to Plugin-writers --------------- Lists of Condition Lists --------------- getMaxCondListSize() - get maximum # of samples condition list can hold getMaxNbrSamplesInDB() - get maximum # of samples database list can hold getMaxNbrCondParams() - get maximum # of condition parameters DB may hold getNbrCondLists() - get # of active condition lists getCondListsNames() - get list of active condition lists names getCondListsSizes() - get list of active condition lists sizes createNewCondList() - create new named condition list isCondList() - tests if this is a name of a condition list removeCondList() - remove named condition list if it exists renameCondList() - rename userListName if it exists to newListName. addSampleToCondList() - add sample to named condition list removeSampleFromCondList() - remove sample from named condition list removeAllSamplesFromCondList() - Remove all samples from cond list. isSampleInCondList() - is sample in named condition list? getCondListLength() - get # of samples in the condition list getSamplesInCondList() - get list of sample numbers in named condition getSampleNamesInCondList() - get list of sample names for named condition getAllSampleNamesInDB() - get list of all sample names in the database getSampleNbrByCondNameAndSampleName() - get sample number by sample name & condition name. getListCondListsStr() - get list of Conditions pretty-print string updateListCondLists() - update existing Condition list window if active. popupAllConditionsReport() - popup a report showing list of all conditions popupListConditionReport() - popup a report showing list of samples for condition --------------- get Lists of Ordered Condition Lists --------------- getMaxOrderedCondListSize() - get max # condition lists an ordered cond. list can hold getNbrOrderedCondLists() - get # of active ordered condition lists getOrderedCondListsNames() - get list of active ordered condition lists names getOrderedCondListsSizes() - get list of active ordered condition lists sizes getOrderedCondNamesInCondList() - get a list of all conditions in order cond list --------------- manipulate Lists of Ordered Condition Lists --------------- createNewNamedOrderedCondList() - create new named ordered list of conditions removeNamedOrderedCondList() - remove named ordered list of conditions isConditionInOrderedCondList() - test if condition is in named ordered condition list. getConditionIdxInOrderedCondList() - get condition index in named ordered condition list. addConditionToOrderedCondList() - add condition list to named ordered condition list. rmvConditionFromOrderedCondList() - remove condition list from named ordered condition list. getNamedOrderedCondListIdx() - lookup named ordered condition list index getConditionsInOrderedCondList() - get list of names conditions in OCL getAllCondNames()- get a list of all condition names. isOrderedCondList() - tests if this is a name of an ordered condition list removeAllCondsFromOrderedCondList() - Remove all conditions from condList setCondInOrderedCondList() - replace existing conditions with new list popupListOCLReport() - popup a report showing list of conds for OCL popupAllOCLsReport() - popup a report showing list of all OCLs getCurOCL() - return the name of the current OCL if it exists setCurOCL() - set the name of the current OCL --------------- ordered conditions parameters ----------------------------- getMaxNbrOCLParams() - return max number of Ordered Condition List parameters. getOrderedCondParamNames() - return list of Ordered condition paramter names. setOclParamNames() - set list of ocl parameter names for all conditions setOclParamValues() - set list of ocl parameter values for specific condition ------------------------- Set Lists of Conditions ---------------- setNbrCondLists() - Set # of active condition lists setCondListsNames() - Set list of active condition lists names setCondListsSizes() - Set list of active condition lists sizes setCondListLength() - Set # of samples in the condition list setSamplesInCondList() - Set list of sample numbers in named condition. setSampleNamesInCondList() - Set list of sample names in named condition. getCurCondition() - return the name of the current condition if it exists setCurCondition() - set the name of the current condition ------------------------- set-theoretic methods ---------------------------- union() - compute resultCond= Union (Condition 1, Condition 2) intersection() - compute resultCond= Intersection (Condition 1, Condition 2) difference() - compute resultCond = difference (Condition 1 - Condition 2) ------------------------- get condition parameter methods ------------------ getNbrCondParams() - get the number of condition parameters getCondParamNames() - get list of condition parameter names for all conditions getOrderedCondParamValues() - return list of Ordered condition paramter values. ------------------------- set condition parameter methods ------------------ setCondParamNames() - set list of condition parameter names for all conditions setCondParamValues() - set list of parameter values for specific conditionThis work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. 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. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Method Summary | |
boolean |
addConditionToOrderedCondList(java.lang.String condName,
java.lang.String oCondListName)
addConditionToOrderedCondList() - add condition to named ordered condition list. |
boolean |
addSampleToCondList(int sampleNbr,
java.lang.String condName)
addSampleToCondList() - add sample to named condition list |
boolean |
createNewCondList(java.lang.String condName)
createNewCondList() - create new named condition list |
boolean |
createNewNamedOrderedCondList(java.lang.String oCondListName)
createNewNamedOrderedCondList() - create new named ordered condition list of conditions if it does not already exist - in which case do nothing. |
boolean |
difference(java.lang.String cond1Name,
java.lang.String cond2Name,
java.lang.String resultCondName)
difference() - compute resultCond = difference (Condition 1 - Condition 2) |
java.lang.String[] |
getAllCondNames()
getAllCondNames()- get a list of all condition names. |
java.lang.String[] |
getAllSampleNamesInDB()
getAllSampleNamesInDB() - get list of all sample names in the database |
int |
getConditionIdxInOrderedCondList(java.lang.String cdName,
java.lang.String oCondListName)
getConditionIdxInOrderedCondList() - get condition index in named ordered condition list. |
java.lang.String[] |
getConditionsInOrderedCondList(java.lang.String oCondListName)
getConditionsInOrderedCondList() - get list of names conditions in OCL |
int |
getCondListLength(java.lang.String condName)
getCondListLength() - get # of samples in the condition list |
java.lang.String[] |
getCondListsNames()
getCondListsNames() - get list of active condition lists names |
int[] |
getCondListsSizes()
getCondListsSizes() - get list of active condition lists sizes |
java.lang.String[] |
getCondParamNames()
getCondParamNames() - get list of condition parameter names for all conditions |
java.lang.String[] |
getCondParamValues(java.lang.String condName)
getCondParamValues() - get list of parameter values for specific condition |
java.lang.String |
getCurCondition()
|
java.lang.String |
getCurOCL()
|
java.lang.String |
getListCondListsStr()
getListCondListsStr() - get list of Conditions pretty-print string |
int |
getMaxCondListSize()
getMaxCondListSize() - get maximum # of samples condition list can hold |
int |
getMaxNbrCondParams()
getMaxNbrCondParams() - get maximum # of condition parameters DB may hold |
int |
getMaxNbrOCLParams()
getMaxNbrOCLParams() - return max number of Ordered Condition List parameters. |
int |
getMaxNbrSamplesInDB()
getMaxNbrSamplesInDB() - get maximum # of samples database list can hold |
int |
getMaxOrderedCondListSize()
getMaxOrderedCondListSize() - get maximum # of condition lists that an ordered condition list can hold |
int |
getNamedOrderedCondListIdx(java.lang.String oCondListName)
getNamedOrderedCondListIdx() - get named ordered condition list index |
int |
getNbrCondLists()
getNbrCondLists() - get # of active condition lists |
int |
getNbrCondParams()
getNbrCondParams() - get the number of condition parameters |
int |
getNbrOrderedCondLists()
getNbrOrderedCondLists() - get # of active ordered condition lists |
java.lang.String[] |
getOrderedCondListsNames()
getOrderedCondListsNames() - get list of active ordered condition lists names |
int[] |
getOrderedCondListsSizes()
getOrderedCondListsSizes() - get list of active ordered condition lists sizes |
java.lang.String[] |
getOrderedCondNamesInCondList(java.lang.String orderedCondListName)
getOrderedCondNamesInCondList() - get a list of all condition names in ordered cond list |
java.lang.String[] |
getOrderedCondParamNames()
getOrderedCondParamNames() - return list of Ordered condition paramter names. |
java.lang.String[] |
getOrderedCondParamValues(java.lang.String oclName)
getOrderedCondParamValues() - return list of Ordered condition paramter values. |
java.lang.String[] |
getSampleNamesInCondList(java.lang.String condName)
getSampleNamesInCondList() - get list of sample names in named condition. |
int |
getSampleNbrByCondNameAndSampleName(java.lang.String condName,
java.lang.String sampleName)
getSampleNbrByCondNameAndSampleName() - get sample number by sample name and condition name. |
int[] |
getSamplesInCondList(java.lang.String condName)
getSamplesInCondList() - get list of sample numbers in named condition. |
boolean |
intersection(java.lang.String cond1Name,
java.lang.String cond2Name,
java.lang.String resultCondName)
intersection() - compute resultCond= Intersection (Condition 1, Condition 2) |
boolean |
isConditionInOrderedCondList(java.lang.String condName,
java.lang.String oCondListName)
isConditionInOrderedCondList() - test if condition is in named ordered condition list. |
boolean |
isCondList(java.lang.String condName)
isCondList() - tests if this is a name of a condition list |
boolean |
isOrderedCondList(java.lang.String condName)
isOrderedCondList() - tests if this is a name of an ordered condition list |
boolean |
isSampleInCondList(int sampleNbr,
java.lang.String condName)
isSampleInCondList() - is sample in named condition list? |
void |
popupAllConditionsReport()
popupAllConditionsReport() - popup a report showing list of all conditions |
void |
popupAllOCLsReport()
popupAllOCLsReport() - popup a report showing list of all OCLs |
void |
popupListConditionReport(java.lang.String condName)
popupListConditionReport() - popup a report showing list of samples for condition |
void |
popupListOCLReport(java.lang.String orderedCondListName)
|
boolean |
removeAllCondsFromOrderedCondList(java.lang.String oCondListName)
removeAllCondsFromOrderedCondList() - Remove all conditions from condList |
boolean |
removeAllSamplesFromCondList(java.lang.String condListName)
removeAllSamplesFromCondList() - Remove all samples from cond list. |
boolean |
removeCondList(java.lang.String condName)
removeCondList() - remove named condition list if it exists and also remove it from any ordered condition lists it may appear in. |
boolean |
removeNamedOrderedCondList(java.lang.String oCondListName)
removeNamedOrderedCondList() - remove existing named ordered list of conditions the ordered list exists. |
boolean |
removeSampleFromCondList(int sampleNbr,
java.lang.String condName)
removeSampleFromCondList() - remove sample from named condition list |
boolean |
renameCondList(java.lang.String oldConditionName,
java.lang.String newConditionName,
boolean useExactMatchOnOldNameFlag)
renameCondList() - rename userListName if it exists to newListName. |
boolean |
rmvConditionFromOrderedCondList(java.lang.String condName,
java.lang.String oCondListName)
rmvConditionFromOrderedCondList() - remove condition from named ordered condition list. |
boolean |
setCondInOrderedCondList(java.lang.String oCondListName,
java.lang.String[] newConds,
int nNewCond)
setCondInOrderedCondList() - replace existing conditions with new list |
boolean |
setCondListLength(int nSamples,
java.lang.String condName)
setCondListLength() - Set # of samples in the condition list |
boolean |
setCondListsNames(java.lang.String[] activeCondList,
int size)
setCondListsNames() - Set list of active condition lists names |
boolean |
setCondListsSizes(int[] newListSizes)
setCondListsSizes() - Set list of active condition lists sizes |
boolean |
setCondParamNames(java.lang.String[] newParamNames)
setCondParamNames() - set list of condition parameter names for all conditions. |
boolean |
setCondParamValue(java.lang.String condName,
java.lang.String[] newParamValues)
setCondParamValue() - set list of parameter values for specific condition NOTE: the # of parameter values must match the number of parameter names. |
boolean |
setCurCondition(java.lang.String newCurCondName)
|
boolean |
setCurOCL(java.lang.String newCurOCLname)
|
boolean |
setNbrCondLists(int nCondListsNew)
setNbrCondLists() - Set # of active condition lists |
boolean |
setOclParamNames(java.lang.String[] newParamNames)
setOclParamNames() - set list of ocl parameter names for all conditions. |
boolean |
setOclParamValue(java.lang.String oclName,
java.lang.String[] newParamValues)
setOclParamValue() - set list of ocl parameter values for specific condition NOTE: the # of parameter values must match the number of parameter names. |
boolean |
setSamplesInCondList(java.lang.String condListName,
java.lang.String[] sampleNames,
int nNewSamples)
setSamplesInCondList() - Set list of sample numbers in named condition. |
boolean |
union(java.lang.String cond1Name,
java.lang.String cond2Name,
java.lang.String resultCondName)
union() - compute resultCond= Union (Condition 1, Condition 2) |
void |
updateListCondLists()
updateListCondLists() - update existing Condition list window if active. |
Methods inherited from class MJAbase |
cvtHashtable2SimpleTable, cvtTable2Hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final int getMaxCondListSize()
public final int getMaxNbrSamplesInDB()
public final int getMaxNbrCondParams()
public final int getNbrCondLists()
public final java.lang.String[] getCondListsNames()
public final int[] getCondListsSizes()
public final boolean createNewCondList(java.lang.String condName)
condName
- is the name of the new condition listpublic final boolean isCondList(java.lang.String condName)
condName
- is the name of the condition listpublic final boolean removeCondList(java.lang.String condName)
[TODO]
condName
- is the name of the condition list to deletepublic final boolean addSampleToCondList(int sampleNbr, java.lang.String condName)
sampleNbr
- is the sample to add to the condition listcondName
- is the name of the condition listpublic final boolean removeSampleFromCondList(int sampleNbr, java.lang.String condName)
sampleNbr
- is the sample to remove from the condition listcondName
- is the name of the condition listpublic boolean removeAllSamplesFromCondList(java.lang.String condListName)
condListName
- name of condition list to remove all samples.public final boolean renameCondList(java.lang.String oldConditionName, java.lang.String newConditionName, boolean useExactMatchOnOldNameFlag)
oldConditionName
- name of existing condition to be renamednewConditionName
- is the new name to call that conditionuseExactMatchOnOldNameFlag
- will match just first part of old namepublic final boolean isSampleInCondList(int sampleNbr, java.lang.String condName)
sampleNbr
- is the sample to test in the condition listcondName
- is the name of the condition listpublic final int getCondListLength(java.lang.String condName)
condName
- is the name of the condition listpublic final int[] getSamplesInCondList(java.lang.String condName)
condName
- is the name of the condition listpublic final java.lang.String[] getSampleNamesInCondList(java.lang.String condName)
condName
- is the name of the condition listpublic final java.lang.String[] getAllSampleNamesInDB()
public final int getSampleNbrByCondNameAndSampleName(java.lang.String condName, java.lang.String sampleName)
condName
- is the name of the condition listsampleName
- is the name of the samplepublic final java.lang.String getListCondListsStr()
public final void updateListCondLists()
public final void popupAllConditionsReport()
public final void popupListConditionReport(java.lang.String condName)
condName
- is the condition that will be used to generate a reportpublic final int getMaxOrderedCondListSize()
public final int getNbrOrderedCondLists()
public final java.lang.String[] getOrderedCondListsNames()
public final int[] getOrderedCondListsSizes()
public final java.lang.String[] getOrderedCondNamesInCondList(java.lang.String orderedCondListName)
public final boolean createNewNamedOrderedCondList(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listpublic final boolean removeNamedOrderedCondList(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listpublic final boolean isConditionInOrderedCondList(java.lang.String condName, java.lang.String oCondListName)
cdName
- is condition to testoCondListName
- is the name of the ordered condition listpublic final int getConditionIdxInOrderedCondList(java.lang.String cdName, java.lang.String oCondListName)
cdName
- is condition to testoCondListName
- is the name of the ordered condition listpublic final boolean addConditionToOrderedCondList(java.lang.String condName, java.lang.String oCondListName)
cdName
- is condition to addoCondListName
- is the name of the ordered condition listaddConditionToOrderedCondList(java.lang.String, java.lang.String)
public final boolean rmvConditionFromOrderedCondList(java.lang.String condName, java.lang.String oCondListName)
cdName
- is condition list to removeoCondListName
- is the name of the ordered condition listCondition#lookupCondListIdxByName
,
Condition#rmvConditionFromOrderedCondList
public final int getNamedOrderedCondListIdx(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listpublic final java.lang.String[] getConditionsInOrderedCondList(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listpublic final java.lang.String[] getAllCondNames()
public final boolean isOrderedCondList(java.lang.String condName)
oCondName
- is the name of the ordered condition listCondition#isOrderedCondList
public final boolean removeAllCondsFromOrderedCondList(java.lang.String oCondListName)
condListName
- name of condion listgetOrderedCondNamesInCondList(java.lang.String)
,
isOrderedCondList(java.lang.String)
,
rmvConditionFromOrderedCondList(java.lang.String, java.lang.String)
public final boolean setCondInOrderedCondList(java.lang.String oCondListName, java.lang.String[] newConds, int nNewCond)
oCondListName
- ordered condition list namenewConds
- ordered list of condsnNewCond
- number of conditions in newCondsaddConditionToOrderedCondList(java.lang.String, java.lang.String)
,
isOrderedCondList(java.lang.String)
,
removeAllCondsFromOrderedCondList(java.lang.String)
public final void popupListOCLReport(java.lang.String orderedCondListName)
public final void popupAllOCLsReport()
public final java.lang.String getCurOCL()
public final boolean setCurOCL(java.lang.String newCurOCLname)
public final int getMaxNbrOCLParams()
public final java.lang.String[] getOrderedCondParamNames()
public final java.lang.String[] getOrderedCondParamValues(java.lang.String oclName)
oclName
- Ordered Condition List namepublic final boolean setOclParamNames(java.lang.String[] newParamNames)
newParamNames
- - is the list of new names to save.public final boolean setOclParamValue(java.lang.String oclName, java.lang.String[] newParamValues)
condName
- - name of the condition to update its valuesnewParamValues
- - is the list of new parameter values to save.public final boolean setNbrCondLists(int nCondListsNew)
public final boolean setCondListsNames(java.lang.String[] activeCondList, int size)
public final boolean setCondListsSizes(int[] newListSizes)
newListSizes
- new size of cond listpublic final boolean setCondListLength(int nSamples, java.lang.String condName)
condName
- is the name of the condition listpublic final boolean setSamplesInCondList(java.lang.String condListName, java.lang.String[] sampleNames, int nNewSamples)
condListName
- is the name of the condition listsampleNames
- is list of sample names to be assigned to the conditionnNewSamples
- number of new samples to be setpublic final java.lang.String getCurCondition()
public final boolean setCurCondition(java.lang.String newCurCondName)
public final boolean union(java.lang.String cond1Name, java.lang.String cond2Name, java.lang.String resultCondName)
cond1Name
- name of condition 1cond2
- name of condition 2resultCondName
- name of computed Union (Conditon 1, Condition 2)public final boolean intersection(java.lang.String cond1Name, java.lang.String cond2Name, java.lang.String resultCondName)
cond1Name
- name of condition 1cond2Name
- name of condition 2resultCondName
- name of computed Union (Conditon 1, Condition 2)public final boolean difference(java.lang.String cond1Name, java.lang.String cond2Name, java.lang.String resultCondName)
cond1Name
- name of condition 1cond2Name
- name of condition 2resultCondName
- name of computed Union (Conditon 1, Condition 2)public final int getNbrCondParams()
public final java.lang.String[] getCondParamNames()
public final java.lang.String[] getCondParamValues(java.lang.String condName)
condName
- name of conditionpublic final boolean setCondParamNames(java.lang.String[] newParamNames)
newParamNames
- - is the list of new names to save.#setCondParamValues
public final boolean setCondParamValue(java.lang.String condName, java.lang.String[] newParamValues)
condName
- - name of the condition to update its valuesnewParamValues
- - is the list of new parameter values to save.setCondParamNames(java.lang.String[])
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |