|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.espro.model.AbstractModel
org.sourceforge.espro.model.RunnableQuestionnaire
public class RunnableQuestionnaire
The RunnableQuestionnaire is a copy of the questionnaire and is thought to run for the user. It is neccessary to copy the original questionnaire, because the user changes the values which must not be recorded to the original questionnaire. In java terms you could say, the Questionnaire provides a Class for the user, because there he can create and modify the questionnaire to his/her preferences. The RunnableQuestionnaire can then be thought as an Object from the Questionnaire, where every subject gets his own object or copy.
Field Summary |
---|
Fields inherited from class org.sourceforge.espro.model.AbstractModel |
---|
pcs |
Constructor Summary | |
---|---|
RunnableQuestionnaire(java.util.ArrayList<Item> items,
Settings settings,
Questionnaire parent)
Creates a new instance of RunnableQuestionnaire |
Method Summary | |
---|---|
Item |
getCurrent()
|
Item |
getItem(java.lang.String id)
Returns one item given the id. |
java.util.ArrayList<Item> |
getItems()
Returns the items. |
Questionnaire |
getParent()
Returns the original questionnaire where this runnable questionnaire was derived from. |
Settings |
getSettings()
Returns the settings. |
java.lang.String |
getSid()
Returns the subject id. |
boolean |
isDone()
Tells us if all of the items are done. |
void |
setCurrent(Item item)
Sets the current item. |
void |
setParent(Questionnaire parent)
Sets the parent questionnaire. |
void |
setSettings(Settings settings)
Sets the settings. |
void |
setSid(java.lang.String sid)
Sets the subject id. |
void |
start()
Starts the questionnaire. |
void |
storeData()
Stores the recorded data in the parent questionnaire. |
Methods inherited from class org.sourceforge.espro.model.AbstractModel |
---|
addPropertyChangeListener, addPropertyChangeListener, isSaved, removePropertyChangeListener, setSaved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunnableQuestionnaire(java.util.ArrayList<Item> items, Settings settings, Questionnaire parent)
items
- The items of the questionnaire.settings
- The settings of the questionnaire.parent
- The parent or lets say, the questionnaire itself.Method Detail |
---|
public java.util.ArrayList<Item> getItems()
public Item getItem(java.lang.String id)
id
- The id.
public void setCurrent(Item item)
item
- The item.public Item getCurrent()
public Settings getSettings()
public void setSettings(Settings settings)
settings
- The Settingspublic boolean isDone()
public void start()
public Questionnaire getParent()
public void setParent(Questionnaire parent)
parent
- The Questionnaire.public java.lang.String getSid()
public void setSid(java.lang.String sid)
sid
- The subject id.public void storeData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |