public class RandomRespondent extends AbstractRespondent
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomRespondent.AdversaryType |
| Modifier and Type | Field and Description |
|---|---|
RandomRespondent.AdversaryType |
adversaryType |
static Gensym |
gensym |
String |
id |
Survey |
survey |
LOGGER, rng| Constructor and Description |
|---|
RandomRespondent(Survey survey,
RandomRespondent.AdversaryType adversaryType) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRespondent |
copy()
Returns a copy of this respondent type.
|
SurveyResponse |
getResponse()
Method to obtain the simulated survey response for the survey that this respondent was instantiated with.
|
generateStringComponent, getDenominatorpublic static final Gensym gensym
public final Survey survey
public final RandomRespondent.AdversaryType adversaryType
public final String id
public RandomRespondent(Survey survey, RandomRespondent.AdversaryType adversaryType) throws SurveyException
SurveyExceptionpublic SurveyResponse getResponse()
AbstractRespondentgetResponse in class AbstractRespondentpublic AbstractRespondent copy() throws SurveyException
AbstractRespondentcopy in class AbstractRespondentSurveyExceptionCopyright © 2015. All rights reserved.