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, getDenominator
public 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
SurveyException
public SurveyResponse getResponse()
AbstractRespondent
getResponse
in class AbstractRespondent
public AbstractRespondent copy() throws SurveyException
AbstractRespondent
copy
in class AbstractRespondent
SurveyException
Copyright © 2015. All rights reserved.