org.sourceforge.espro.model
Class QData

java.lang.Object
  extended by org.sourceforge.espro.model.AbstractModel
      extended by org.sourceforge.espro.model.QData
All Implemented Interfaces:
java.io.Serializable, ModelInterface

public class QData
extends AbstractModel

The Questionnaire Data (QData) object represents the data of the questionnaire and is attached to the questionnaire.

Author:
(c) 2007 Martin Kaffanke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sourceforge.espro.model.AbstractModel
pcs
 
Constructor Summary
QData()
          Creates a new instance of QData
 
Method Summary
 void addPerson(Person p)
          Adds a Person to the QData object.
 java.util.ArrayList<Person> getPersons()
          Returns the list of persons.
 void setPersons(java.util.ArrayList<Person> persons)
          Sets the list of persons.
 void setSaved(boolean saved)
          Sets the QData saved.
 int size()
          Returns the actual size of the questionnaire data.
 
Methods inherited from class org.sourceforge.espro.model.AbstractModel
addPropertyChangeListener, addPropertyChangeListener, isSaved, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QData

public QData()
Creates a new instance of QData

Method Detail

addPerson

public void addPerson(Person p)
Adds a Person to the QData object.

Parameters:
p - The Person instance.

getPersons

public java.util.ArrayList<Person> getPersons()
Returns the list of persons.

Returns:
The List of persons.

setPersons

public void setPersons(java.util.ArrayList<Person> persons)
Sets the list of persons. Used when reading a file.

Parameters:
persons - The persons.

setSaved

public void setSaved(boolean saved)
Sets the QData saved.

Overrides:
setSaved in class AbstractModel
Parameters:
saved - Saved or not - true or false.

size

public int size()
Returns the actual size of the questionnaire data. This could be the number of people we have data from.

Returns:
The number of runs.