|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuserinterface.gui.GuiHalfLife
public class GuiHalfLife
'Interface' which connects GUI and methods for half life calculations
Field Summary | |
---|---|
static java.lang.String |
EU
|
static java.lang.String |
NEW
|
static java.lang.String |
PRE
|
Constructor Summary | |
---|---|
GuiHalfLife()
|
Method Summary | |
---|---|
void |
addHL(java.lang.String hlName,
int time,
int replicate)
Add a half life object to the current list, also add corresponding time |
void |
calcHL()
Use set variables and create half life objects for every method, calculate half lives |
void |
calcHLonMedian(java.util.List<CorrectionFactors> corr)
Calculates the Half life values based on a list of correction factors which correspond to the list of half lives |
double |
calculateMedian()
|
void |
clearHL()
Resets everything that has been used for half life calculation of previous half life list |
java.util.List<CorrectionFactors> |
getCFonMedian(double mD)
Calculates the median for each half life object and the correction factors based on this median |
java.util.List<HalfLife> |
getHL()
Returns the list of half life objects calculated |
double |
getMD()
Returns the last calculated median |
java.util.List<java.lang.String> |
getMethods()
Returns the list of method descriptions used for half life calculation |
java.util.List<java.lang.Integer> |
getReplicates()
Returns the number of the used replicate for each half life object |
java.util.List<java.lang.Integer> |
getTimes()
Returns the list of time points used for calculation |
boolean |
hasHL()
Checks whether there are any half lives |
void |
saveHL()
Based on calculated half lives, writes results into output file |
void |
setCorr(CorrectionFactors corr)
Sets the correction factors needed for half life calculation |
void |
setData(Data data)
Sets the data on which the half life calculation is based |
void |
setMethods(java.util.List<java.lang.String> methods)
Sets the list of method descriptions for calculation |
void |
setOutput(java.lang.String filename,
int which,
boolean nan)
Sets all necessary variables for defining the output |
void |
setRatioMethod(int method)
Changes the method used for ratio calculation |
void |
setReplicates(java.util.List<java.lang.Integer> replicates)
Sets the numbers of the replicates for the half life calculations |
void |
setTimes(java.util.List<java.lang.Integer> times)
Sets the list of time points for calculation, order corresponding to the list of methods |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NEW
public static final java.lang.String PRE
public static final java.lang.String EU
Constructor Detail |
---|
public GuiHalfLife()
Method Detail |
---|
public void calcHL()
public double calculateMedian()
public java.util.List<CorrectionFactors> getCFonMedian(double mD)
public void calcHLonMedian(java.util.List<CorrectionFactors> corr)
corr
- List containing a set of correction factors for every half life objectpublic void saveHL()
public void clearHL()
public boolean hasHL()
public void addHL(java.lang.String hlName, int time, int replicate)
hlName
- Name of the half life object (new/pre/eu)time
- Timepoint for which calculation is wantedreplicate
- Replicate for which the calculation is wantedpublic void setRatioMethod(int method)
method
- The method to be used for ratio calculationpublic void setOutput(java.lang.String filename, int which, boolean nan)
filename
- Name of the file in which output will be savedwhich
- Which results will be saved (ratio/halflife/both?)nan
- Should NaN and negative values be kept?public void setData(Data data)
data
- The data object for the calculationpublic void setReplicates(java.util.List<java.lang.Integer> replicates)
replicates
- The list of replicate numberspublic void setCorr(CorrectionFactors corr)
corr
- The correction factors for the calculationpublic void setMethods(java.util.List<java.lang.String> methods)
methods
- The list of methods for half life calculationpublic void setTimes(java.util.List<java.lang.Integer> times)
times
- A list of time points for half life calculationpublic java.util.List<java.lang.String> getMethods()
public java.util.List<java.lang.Integer> getReplicates()
public double getMD()
public java.util.List<java.lang.Integer> getTimes()
public java.util.List<HalfLife> getHL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |