|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthalo.userinterface.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,
double time,
int replicate)
Add a half-life object to the current list, also add corresponding time |
void |
calcHL()
Use set variables and create HalfLife 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()
Calculate the median for a set of half-lives |
void |
clearHL()
Resets everything that has been used for half-life calculation of previous half-life list |
void |
generateHL()
Generate empty HalfLife objects according to the given methods, without calculating the half-lives |
Alpha |
getAlpha()
Returns the alpha function of the first half-life object, based on the assumption that all objects use the same alpha |
java.util.List<CorrectionFactors> |
getCFonMedian(double mD)
Calculates the median for each HalfLife 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.Double> |
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 |
saveHLWithAttributes(int index,
java.lang.String file,
java.util.ArrayList<java.lang.String> labels)
|
void |
setAlpha(Alpha alpha)
Sets the alpha object |
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 |
setMax(double max)
Sets the maximal value for half-life values |
void |
setMethods(java.util.List<java.lang.String> methods)
Sets the list of method descriptions for calculation |
void |
setMin(double min)
Sets the minimum value for half-life values |
void |
setOutput(java.lang.String filename,
int which)
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.Double> 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 void generateHL()
public double calculateMedian()
public java.util.List<CorrectionFactors> getCFonMedian(double mD)
mD
- The median value
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 saveHLWithAttributes(int index, java.lang.String file, java.util.ArrayList<java.lang.String> labels)
public void clearHL()
public boolean hasHL()
public void addHL(java.lang.String hlName, double time, int replicate)
hlName
- Name of the half-life object (new/pre/eu)time
- Time point 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 setAlpha(Alpha alpha)
alpha
- Alpha object with specific alpha calculation functionpublic void setMax(double max)
max
- Maximum value for half-livespublic void setMin(double min)
min
- Minimum value for half-livespublic void setOutput(java.lang.String filename, int which)
filename
- Name of the file in which output will be savedwhich
- Which results will be saved (ratio/halflife/both?)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.Double> times)
times
- A list of time points for half- life calculationpublic Alpha getAlpha()
public java.util.List<java.lang.String> getMethods()
public java.util.List<java.lang.Integer> getReplicates()
public double getMD()
public java.util.List<java.lang.Double> getTimes()
public java.util.List<HalfLife> getHL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |