|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.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)
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)
|
void |
clearHL()
Resets everything that has been used for half life calculation of previous half life list |
java.util.List<CorrectionFactors> |
getCFonMedian()
|
java.util.List<HalfLife> |
getHL()
|
double |
getMD()
|
java.util.List<java.lang.String> |
getMethods()
|
java.util.List<java.lang.Integer> |
getTimes()
|
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)
|
void |
setData(Data data)
|
void |
setMethods(java.util.List<java.lang.String> methods)
|
void |
setOutput(java.lang.String filename,
int which,
boolean nan)
Sets all necessary variables for defining the output |
void |
setTimes(java.util.List<java.lang.Integer> times)
|
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 setData(Data data)
public void setCorr(CorrectionFactors corr)
public 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 addHL(java.lang.String hlName, int time)
hlName
- Name of the half life object (new/pre/eu)time
- Timepoint for which calculation is wantedpublic boolean hasHL()
public void clearHL()
public void calcHL()
public void calcHLonMedian(java.util.List<CorrectionFactors> corr)
public void saveHL()
public java.util.List<CorrectionFactors> getCFonMedian()
public java.util.List<java.lang.String> getMethods()
public double getMD()
public void setMethods(java.util.List<java.lang.String> methods)
public void setTimes(java.util.List<java.lang.Integer> times)
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 |