|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Condition
This class represents an individual Condition list of hybridized sample entries. It holds the static list database of all active Conditions as well as data structures for defining ordered lists of Condition lists. This is useful for creating ordered lists of replicate samples. There are methods for creating, removing, testing, etc. these data structures.
This 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/.
MaHybridSample
Field Summary | |
(package private) static int |
cfNparams
# of condition parameters |
(package private) static java.lang.String[] |
cfParamNames
[0:cfNparams-1] list of condition parameter names for CondForm |
(package private) static java.lang.String[][] |
cfParamValues
[0:nCondLists-1][0:cfNparams-1] list of condition parameter values for CondForm |
(package private) java.lang.String |
cName
name of condition list |
(package private) static Condition[] |
condList
[0:nCondLists-1] list of condLists' |
(package private) static java.lang.String[] |
condNames
[0:nCondLists-1] list of names of the conditions |
(package private) static int |
curCondIdx
Current condition which was the last condition selected by the PopupConditionChooser. |
(package private) static int |
curOCLidx
Current OCL which was the last OCL selected by the PopupOrderedCondChooser. |
private static MAExplorer |
mae
link to global MAExplorer instance |
(package private) static int |
MAX_COND_LISTS
maximum number of # of condition lists slots available. |
(package private) static int |
MAX_ORDERED_COND_LISTS
maximum number of # of ordered condition lists slots available. |
(package private) static int |
maxOrderedCondLists
max # of ordered condition lists that have been created. |
(package private) MaHybridSample[] |
msCond
[0:nMScond-1] elements of the list |
(package private) static int |
nCondLists
# of condition lists |
(package private) int |
nMScond
# of entries in the list |
(package private) static int[] |
nOrderedCondList
# of conditions in each of the ordered condition lists [0:maxOrderedCondLists-1] |
(package private) static int |
oclNparams
# of ordered condition list parameters |
(package private) static java.lang.String[] |
oclParamNames
[0:oclNparams-1] list of OCL parameter names for CondForm |
(package private) static java.lang.String[][] |
oclParamValues
[0:maxOrderedCondLists-1][0:oclNparams-1] list of OCL parameter values for CondForm |
(package private) static Condition[][] |
orderedCondList
Database orderedCondList (OCL) list of all order sample condition lists [0:maxOrderedCondLists][1:nConditions] for all active samples. |
(package private) static java.lang.String[] |
orderedCondListName
Names of ordered condition lists [0:maxOrderedCondLists-1] |
Constructor Summary | |
(package private) |
Condition(MAExplorer maE,
java.lang.String condName,
boolean intitalParamFlag)
Condition() - constructor to create a new named sample Condition list. |
(package private) |
Condition(java.lang.String condName)
Condition() - constructor to create a new empty named Condition list. |
(package private) |
Condition(java.lang.String condName,
MaHybridSample[] msList,
int msListLength,
int offset)
Condition() - constructor to create a new condition with list of samples. |
Method Summary | |
(package private) boolean |
addConditionToOrderedCondList(Condition cd,
java.lang.String oCondListName)
addConditionToOrderedCondList() - add condition to named ordered condition list. |
(package private) int |
addCondList(java.lang.String conditionName,
MaHybridSample[] msList,
int msListLength,
int offset)
addCondList() - add conditionName Condition list with msList[] data |
(package private) boolean |
addHPtoCondList(MaHybridSample ms)
addHPtoCondList() - add Sample to condition list. |
(package private) void |
cleanup()
cleanup() - cleanup global static allocated variables in this class. |
(package private) boolean |
createNewNamedOrderedCondList(java.lang.String oCondListName)
createNewNamedOrderedCondList() - create new named ordered condition list if it does not already exist - in which case do nothing. |
(package private) Condition |
difference(Condition cond1,
Condition cond2,
java.lang.String newName)
difference() - compute difference of two conditions cond1 and cond2. |
(package private) static Condition |
getConditionByName(java.lang.String condListName)
getConditionByName() - lookup Condition entry by name |
(package private) int |
getConditionIdxInOrderedCondList(Condition cd,
java.lang.String oCondListName)
getConditionIdxInOrderedCondList() - get condition index in named ordered condition list. |
(package private) int |
getCondListLength()
getCondListLength() - get Condition list length |
(package private) java.lang.String |
getCondListName()
getCondListName() - get Condition list name |
(package private) MaHybridSample[] |
getHPlist()
getHPlist() - get sample list for condition [1:nMScond] |
(package private) java.lang.String |
getListCondListsStr()
getListCondListsStr() - get a list of the names of the Condition lists |
(package private) void |
initCondition(java.lang.String condName)
initCondition() - initialize Condition list to empty - i.e. |
(package private) Condition |
intersection(Condition cond1,
Condition cond2,
java.lang.String newName)
intersection() - compute intersection of two conditions cond1 and cond2. |
(package private) boolean |
isConditionInOrderedCondList(Condition cd,
java.lang.String oCondListName)
isConditionInOrderedCondList() - test if condition is in named ordered condition list. |
(package private) boolean |
isHPinCondList(MaHybridSample ms)
isHPinCondList() - is Sample in condition list |
(package private) static boolean |
isInCondList(java.lang.String condListName)
isInCondList() - tests if this is the name of a condition list |
(package private) boolean |
isOrderedCondList(java.lang.String oCondListName)
isOrderedCondList() - test if is named ordered condition list. |
boolean |
listAllOrderedConditions()
listAllOrderedConditions() - popup a report showing list of all OCLs |
(package private) boolean |
listCondition(java.lang.String userName)
listCondition() - popup a window listing of all samples in the named Condition lists |
(package private) void |
listCondLists()
listCondLists() - popup a window listing of all Condition lists in database |
(package private) boolean |
listOrderedCondition(java.lang.String oclName)
listOrderedCondition() - popup a window listing of all Conditions in the Ordered Condition list |
(package private) static int |
lookupCondListIdxByName(java.lang.String userListName,
boolean exactFlag)
lookupCondListIdxByName() - lookup a Condition by name and return the index. |
(package private) Condition[] |
lookupNamedOrderedCondList(java.lang.String oCondListName)
lookupNamedOrderedCondList() - lookup named ordered condition list |
(package private) int |
lookupNamedOrderedCondListIdx(java.lang.String oCondListName)
lookupNamedOrderedCondListIdx() - lookup named ordered condition list index |
(package private) boolean |
removeNamedOrderedCondList(java.lang.String oCondListName)
removeNamedOrderedCondList() - remove existing named ordered list of conditions if it exists. |
(package private) boolean |
renameCondList(java.lang.String conditionName,
java.lang.String newCondName,
boolean useExactMatch)
renameCondList() - rename conditionName if it exists to newCondName |
(package private) java.lang.String[] |
returnListOfCondsForOCL(java.lang.String oclName)
returnListOfCondsForOCL() - return list of conditions |
(package private) boolean |
rmvConditionFromOrderedCondList(Condition cd,
java.lang.String oCondListName)
rmvConditionFromOrderedCondList() - remove condition from named ordered condition list. |
(package private) boolean |
rmvCondList(java.lang.String conditionName,
boolean useExactMatch,
boolean rmvCorrespondingParamFlag)
rmvCondList() - remove conditionName from the list of Condition lists if it exists. |
(package private) boolean |
rmvHPfromCondList(MaHybridSample ms)
rmvHPfromCondList() - remove Sample from condition list |
(package private) Condition |
union(Condition cond1,
Condition cond2,
java.lang.String newName)
union() - compute union of two conditions cond1 and cond2. |
(package private) void |
updateListCondLists()
updateListCondLists() - update existing Condition list window, else nop |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static MAExplorer mae
static final int MAX_COND_LISTS
static final int MAX_ORDERED_COND_LISTS
static int nCondLists
static Condition[] condList
static java.lang.String[] condNames
static java.lang.String[] cfParamNames
static java.lang.String[][] cfParamValues
static int cfNparams
static int curCondIdx
static int curOCLidx
java.lang.String cName
MaHybridSample[] msCond
int nMScond
static Condition[][] orderedCondList
E.g., if ck are Condition instances, then OCL[0] = (c1,c2,c3,c4) OCL[1] = (c5,c6,c7,c8) . . . OCL[maxOrderedCondLists-1] = (c9,c10) E.g., the jth instance of orderedCondList[j] is an array instance of size nOrderedCondList[j] conditions i.e. OCL[j]= new Condition[ nOrderedCondList[j] ]; The name of thejth OCL ius orderedCondListName[j]. The initial OCL DB is allocated as an empty 2D array in the Constructor orderedCondList= new Condition[MAX_ORDERED_COND_LISTS][]; Then, OCL instances are added using createNewNamedOrderedCondList().
static java.lang.String[] orderedCondListName
static int[] nOrderedCondList
static int maxOrderedCondLists
static java.lang.String[] oclParamNames
static java.lang.String[][] oclParamValues
static int oclNparams
Constructor Detail |
Condition(MAExplorer maE, java.lang.String condName, boolean intitalParamFlag)
maE
- is the MAExplorer instancecondName
- of new conditioninitCondition(java.lang.String)
Condition(java.lang.String condName)
condName
- of new conditioninitCondition(java.lang.String)
Condition(java.lang.String condName, MaHybridSample[] msList, int msListLength, int offset)
condName
- of new conditionmsList
- is list of samplesmsListLength
- is # of samplesoffset
- if the msList starts at [0] or [1], so is 0 or 1.
It is 0 if cond.msCond[] 1 if mae.hps.msList[].addCondList(java.lang.String, MaHybridSample[], int, int)
Method Detail |
void initCondition(java.lang.String condName)
condName
- of new conditionMaHybridSample
static boolean isInCondList(java.lang.String condListName)
condName
- of conditionlookupCondListIdxByName(java.lang.String, boolean)
static Condition getConditionByName(java.lang.String condListName)
condListName
- of conditionlookupCondListIdxByName(java.lang.String, boolean)
static int lookupCondListIdxByName(java.lang.String userListName, boolean exactFlag)
userListName
- is partial name of condition that is unique else numberexactFlag
- do exact match else startsWith()boolean listCondition(java.lang.String userName)
userName
- name of condition to accessShowStringPopup
,
getConditionByName(java.lang.String)
,
lookupCondListIdxByName(java.lang.String, boolean)
void listCondLists()
getListCondListsStr()
,
ShowStringPopup
void updateListCondLists()
PopupRegistry.lookupShowStringPopupInstance(java.lang.String)
,
ShowStringPopup.updateText(java.lang.String)
,
getListCondListsStr()
java.lang.String getListCondListsStr()
int addCondList(java.lang.String conditionName, MaHybridSample[] msList, int msListLength, int offset)
conditionName
- is condition list to addmsList
- is the list of samples specify by a MaHybridSample listmsListLength
- is the number of samples in the listoffset
- 0 if cond.msCond[] 1 if mae.hps.msList[]lookupCondListIdxByName(java.lang.String, boolean)
boolean rmvCondList(java.lang.String conditionName, boolean useExactMatch, boolean rmvCorrespondingParamFlag)
conditionName
- is name of Condition to removeuseExactMatch
- of user name else use startsWith()rmvCorrespondingParamFlag
- may not want to rmv them here since kept
locally in popupchooserlookupCondListIdxByName(java.lang.String, boolean)
boolean renameCondList(java.lang.String conditionName, java.lang.String newCondName, boolean useExactMatch)
conditionName
- is old condition name to renamenewCondName
- is the new Condition name to change it touseExacMatch
- of user name else use startsWith()lookupCondListIdxByName(java.lang.String, boolean)
boolean addHPtoCondList(MaHybridSample ms)
ms
- is the sample to add to this condition listboolean rmvHPfromCondList(MaHybridSample ms)
ms
- is the sample to remove from this condition listboolean isHPinCondList(MaHybridSample ms)
ms
- is the sample to test to see if it is in this condition listjava.lang.String getCondListName()
int getCondListLength()
MaHybridSample[] getHPlist()
boolean createNewNamedOrderedCondList(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listboolean removeNamedOrderedCondList(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listboolean isConditionInOrderedCondList(Condition cd, java.lang.String oCondListName)
cd
- is condition to testoCondListName
- is the name of the ordered condition listboolean isOrderedCondList(java.lang.String oCondListName)
cd
- is condition to testoCondListName
- is the name of the ordered condition listint getConditionIdxInOrderedCondList(Condition cd, java.lang.String oCondListName)
cd
- is condition to testoCondListName
- is the name of the ordered condition listboolean addConditionToOrderedCondList(Condition cd, java.lang.String oCondListName)
cd
- is condition to addoCondListName
- is the name of the ordered condition listcreateNewNamedOrderedCondList(java.lang.String)
boolean rmvConditionFromOrderedCondList(Condition cd, java.lang.String oCondListName)
cd
- is condition list to removeoCondListName
- is the name of the ordered condition listCondition[] lookupNamedOrderedCondList(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listint lookupNamedOrderedCondListIdx(java.lang.String oCondListName)
oCondListName
- is the name of the ordered condition listjava.lang.String[] returnListOfCondsForOCL(java.lang.String oclName)
oclName
- Ordered Condition List name#lookupNamedOrderedCondListIdxByName
boolean listOrderedCondition(java.lang.String oclName)
userName
- name of condition to accessShowStringPopup
,
getConditionByName(java.lang.String)
,
lookupCondListIdxByName(java.lang.String, boolean)
public final boolean listAllOrderedConditions()
Condition union(Condition cond1, Condition cond2, java.lang.String newName)
cond1
- is the name of the first condition listcond2
- is the name of the second condition listaddCondList(java.lang.String, MaHybridSample[], int, int)
Condition intersection(Condition cond1, Condition cond2, java.lang.String newName)
cond1
- is the name of the first condition listcond2
- is the name of the second condition listaddCondList(java.lang.String, MaHybridSample[], int, int)
Condition difference(Condition cond1, Condition cond2, java.lang.String newName)
cond1
- is the name of the first condition listcond2
- is the name of the second condition listaddCondList(java.lang.String, MaHybridSample[], int, int)
void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |