public class StuyDesignContext extends Object
Modifier and Type | Method and Description |
---|---|
void |
clearPower(int position)
Clear power.
|
void |
clearPowerList()
Clear power list.
|
void |
clearSampleSize(int position)
Clear sample size.
|
void |
clearSampleSizeList()
Clear sample size list.
|
edu.ucdenver.bios.webservice.common.domain.Covariance |
createCovariance(double standardDeviation)
Creates the covariance.
|
int |
getGroups()
Convenience Method which returns Number of Groups.
|
int |
getIndividualProgress(int position)
Gets the individual progress.
|
static StuyDesignContext |
getInstance()
Gets the single instance of StudyDesignContext.
|
double |
getMean(int position)
Gets the mean.
|
double |
getPower(int position)
Gets the power.
|
int |
getPowerListSize()
Gets the power list size.
|
Integer[] |
getProgress()
Measures the completeness of each input in the GUI.
|
int |
getRelativeGroupSize(int position)
Gets the relative group size.
|
int |
getSampleSize(int position)
Gets the sample size.
|
Integer |
getSampleSizeListSize()
Gets the sample size list size.
|
String |
getSolvingFor()
Gets the solving for.
|
double |
getStandardDeviation()
Gets the standard deviation.
|
edu.ucdenver.bios.webservice.common.domain.StudyDesign |
getStudyDesign()
Get the study design object associated with this context.
|
int |
getTotalProgress()
Measures the completeness of study design.
|
Double |
getTypeIError()
Gets the type i error.
|
boolean |
hasCovariance()
Checks for covariance.
|
boolean |
relativeGroupEquality()
Relative group equality.
|
static StuyDesignContext |
resetInstance()
Reset instance.
|
void |
resetProgress()
Reset progress.
|
void |
resetProgress(int position)
Reset progress.
|
void |
setDefaultGroups()
convenience Method which sets default Number of Groups.
|
void |
setDefaultMeansAndVariance()
Sets the default relative group size.
|
void |
setDefaultRelativeGroupSize()
Sets the default relative group size.
|
void |
setDefaultRelativeGroupSize(int position)
Sets the default relative group size.
|
void |
setDefaults()
Sets the defaults.
|
void |
setDefaultStandardDeviation()
Sets the default standard deviation.
|
void |
setDefaultTypeIError()
Convenience Method which sets default type i error.
|
void |
setGroups(int groups)
convenience Method which sets given Number of Groups.
|
void |
setMean(double mean,
int position)
Sets the mean.
|
void |
setPower(double power,
int position)
Sets the power.
|
void |
setProgress(int position)
Sets the progress.
|
void |
setProgress(Integer[] data)
Sets the progress.
|
void |
setRelativeGroupSize(int relativeGroupSize,
int position)
Sets the relative group size.
|
void |
setSampleSize(int sampleSize,
int position)
Sets the sample size.
|
void |
setSolvingFor(String solutionType)
Sets the solving for.
|
void |
setStandardDeviation(double standardDeviation)
Sets the standard deviation.
|
void |
setStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign study)
Sets the study design.
|
void |
setTypeIError(Double alpha)
Sets the type i error.
|
void |
synchForGroupChanges(int numberOfGroupsChanged)
Synch for group changes.
|
public edu.ucdenver.bios.webservice.common.domain.StudyDesign getStudyDesign()
public void setStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign study)
study
- the new study designpublic static StuyDesignContext getInstance()
public static StuyDesignContext resetInstance()
public Integer[] getProgress()
public int getTotalProgress()
public int getIndividualProgress(int position)
position
- the positionpublic void setProgress(Integer[] data)
data
- the new progresspublic void setProgress(int position)
position
- the new progresspublic void resetProgress(int position)
position
- the positionpublic void resetProgress()
public void setDefaultGroups()
public void setGroups(int groups)
groups
- the new groupspublic int getGroups()
public void setDefaultTypeIError()
public void setTypeIError(Double alpha)
alpha
- the new type i errorpublic Double getTypeIError()
public void setDefaultRelativeGroupSize()
public void setDefaultRelativeGroupSize(int position)
position
- the new default relative group sizepublic void setRelativeGroupSize(int relativeGroupSize, int position)
relativeGroupSize
- the relative group sizeposition
- the positionpublic int getRelativeGroupSize(int position)
position
- the positionpublic void synchForGroupChanges(int numberOfGroupsChanged)
numberOfGroupsChanged
- the number of groups changedpublic boolean relativeGroupEquality()
public void setSolvingFor(String solutionType)
solutionType
- the new solving forpublic String getSolvingFor()
public boolean hasCovariance()
public double getStandardDeviation()
public void setDefaultStandardDeviation()
public void setStandardDeviation(double standardDeviation)
standardDeviation
- the new standard deviationpublic edu.ucdenver.bios.webservice.common.domain.Covariance createCovariance(double standardDeviation)
standardDeviation
- the standard deviationpublic void setDefaultMeansAndVariance()
public void setMean(double mean, int position)
mean
- the meanposition
- the positionpublic double getMean(int position)
position
- the positionpublic void setPower(double power, int position)
power
- the powerposition
- the positionpublic double getPower(int position)
position
- the positionpublic void clearPowerList()
public void clearPower(int position)
position
- the positionpublic int getPowerListSize()
public void setSampleSize(int sampleSize, int position)
sampleSize
- the sample sizeposition
- the positionpublic int getSampleSize(int position)
position
- the positionpublic void clearSampleSizeList()
public void clearSampleSize(int position)
position
- the positionpublic Integer getSampleSizeListSize()
public void setDefaults()
University of Colorado Denver, Department of Biostatistics and Informatics