gui
Class GuiHalfLife

java.lang.Object
  extended by gui.GuiHalfLife

public class GuiHalfLife
extends java.lang.Object

'Interface' which connects GUI and methods for half life calculations

Author:
Stefanie Kaufmann

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

NEW

public static final java.lang.String NEW
See Also:
Constant Field Values

PRE

public static final java.lang.String PRE
See Also:
Constant Field Values

EU

public static final java.lang.String EU
See Also:
Constant Field Values
Constructor Detail

GuiHalfLife

public GuiHalfLife()
Method Detail

setData

public void setData(Data data)

setCorr

public void setCorr(CorrectionFactors corr)

setOutput

public void setOutput(java.lang.String filename,
                      int which,
                      boolean nan)
Sets all necessary variables for defining the output

Parameters:
filename - Name of the file in which output will be saved
which - Which results will be saved (ratio/halflife/both?)
nan - Should NaN and negative values be kept?

addHL

public void addHL(java.lang.String hlName,
                  int time)
Add a half life object to the current list, also add corresponding time

Parameters:
hlName - Name of the half life object (new/pre/eu)
time - Timepoint for which calculation is wanted

hasHL

public boolean hasHL()
Checks whether there are any half lives

Returns:
True if already any half lives have been set

clearHL

public void clearHL()
Resets everything that has been used for half life calculation of previous half life list


calcHL

public void calcHL()
Use set variables and create half life objects for every method, calculate half lives


calcHLonMedian

public void calcHLonMedian(java.util.List<CorrectionFactors> corr)

saveHL

public void saveHL()
Based on calculated half lives, writes results into output file


getCFonMedian

public java.util.List<CorrectionFactors> getCFonMedian()

getMethods

public java.util.List<java.lang.String> getMethods()

getMD

public double getMD()

setMethods

public void setMethods(java.util.List<java.lang.String> methods)

setTimes

public void setTimes(java.util.List<java.lang.Integer> times)

getTimes

public java.util.List<java.lang.Integer> getTimes()

getHL

public java.util.List<HalfLife> getHL()