public abstract class AbstractRespondent extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.logging.log4j.Logger |
LOGGER |
protected static MersenneRandom |
rng |
| Constructor and Description |
|---|
AbstractRespondent() |
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractRespondent |
copy()
Returns a copy of this respondent type.
|
protected String |
generateStringComponent(Question q)
Generates a string for freetext questions.
|
protected int |
getDenominator(Question q)
Gets the size of the response space for a given question.
|
abstract SurveyResponse |
getResponse()
Method to obtain the simulated survey response for the survey that this respondent was instantiated with.
|
public static final org.apache.logging.log4j.Logger LOGGER
protected static final MersenneRandom rng
public abstract SurveyResponse getResponse()
protected int getDenominator(Question q)
q - The question whose sample space we wish to know.RuntimeException - Cannot be called on freetext questions.protected String generateStringComponent(Question q)
q - The question whose string response we wish to generate.public abstract AbstractRespondent copy() throws SurveyException
SurveyExceptionCopyright © 2015. All rights reserved.