|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.goldenhammer.test.Study
This class represents a study which is executed by a modality and is created through a test profile.
| Field Summary | |
static java.lang.String |
DOCTYPE
|
static java.lang.String |
SERIE_IMAGE_PATH_NODE
The name of the node containing the path of an image for a series. |
static java.lang.String |
SERIES_IMAGES_NODE
The name of the study's images node. |
static java.lang.String |
SERIES_INTERVAL_ATTRIBUTE
The name of the study's name attribute node. |
static java.lang.String |
SERIES_NAME_ATTRIBUTE
The name of a series' name attribute node. |
static java.lang.String |
SERIES_NODE_NAME
The name of a node containing a Series' data. |
static java.lang.String |
SERIES_NUMBER_ATTRIBUTE
The name of the study's name attribute node. |
static java.lang.String |
SERIES_RANDOM_ATTRIBUTE
The name of the study's name attribute node. |
static java.lang.String |
SERIES_SLEEP_ATTRIBUTE
The name of the study's name attribute node. |
static java.lang.String |
STUDY_NAME_ATTRIBUTE
The name of the study's name attribute node. |
static java.lang.String |
STUDY_TEMPLATE
|
| Constructor Summary | |
Study()
Constructor |
|
Study(java.lang.String xmlProfile)
Creates a new study. |
|
Study(java.lang.String xmlProfile,
int repeat,
java.lang.String rand)
Creates a new study. |
|
| Method Summary | |
void |
addSeries(Series series)
Add a series to this study |
java.lang.String |
getRandomFunc()
|
int |
getRepeat()
|
java.util.Collection |
getSeries()
|
java.lang.String |
getStudyName()
|
java.lang.String |
getStudyProfile()
|
void |
save(java.lang.String filename)
Saves this modality to an XML file. |
void |
setRandomFunc(java.lang.String randomFunc)
|
void |
setRepeat(int repeat)
|
void |
setStudyName(java.lang.String studyName)
|
void |
setStudyProfile(java.lang.String studyProfile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String STUDY_NAME_ATTRIBUTE
public static final java.lang.String SERIES_NAME_ATTRIBUTE
public static final java.lang.String SERIES_NUMBER_ATTRIBUTE
public static final java.lang.String SERIES_RANDOM_ATTRIBUTE
public static final java.lang.String SERIES_INTERVAL_ATTRIBUTE
public static final java.lang.String SERIES_SLEEP_ATTRIBUTE
public static final java.lang.String SERIES_IMAGES_NODE
public static final java.lang.String SERIE_IMAGE_PATH_NODE
public static final java.lang.String SERIES_NODE_NAME
public static final java.lang.String DOCTYPE
public static final java.lang.String STUDY_TEMPLATE
| Constructor Detail |
public Study(java.lang.String xmlProfile,
int repeat,
java.lang.String rand)
throws StudyException
xmlProfile - The path to the study's XML template.repeat - //
TODO Define repeatrand - //
TODO Define the random function.
StudyException - thrown if an illegal xml document is passed
public Study(java.lang.String xmlProfile)
throws StudyException
xmlProfile - The path to the study's XML template.
StudyException - thrown if an illegal xml document is passedpublic Study()
| Method Detail |
public java.util.Collection getSeries()
public java.lang.String getStudyName()
public java.lang.String getStudyProfile()
public void setStudyProfile(java.lang.String studyProfile)
studyProfile - The studyProfile to set.public void setStudyName(java.lang.String studyName)
studyName - The studyName to set.public void addSeries(Series series)
series - the series to addpublic java.lang.String getRandomFunc()
public void setRandomFunc(java.lang.String randomFunc)
randomFunc - The randomFunc to set.public int getRepeat()
public void setRepeat(int repeat)
repeat - The repeat to set.
public void save(java.lang.String filename)
throws java.io.IOException
filename - The desired name of the XML file.
java.io.IOException - If the file could not be written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||