public class RespondentUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
RESPONSE_EMPTY_RATE_0_PERCENT |
static int |
RESPONSE_EMPTY_RATE_100_PERCENT |
static int |
RESPONSE_EMPTY_RATE_25_PERCENT |
static int |
RESPONSE_EMPTY_RATE_50_PERCENT |
Constructor and Description |
---|
RespondentUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addRespondent(long surveyId,
int respondentEmptyRate)
Adds a respondent with random answers to surveys of any structure, based on the
respondentEmptyRate (one of the constants defined in this class)
|
static void |
addRespondents(long surveyId,
int noOfRespondents,
int respondentEmptyRate)
Adds N respondents with random answers to surveys of any structure
|
public static final int RESPONSE_EMPTY_RATE_100_PERCENT
public static final int RESPONSE_EMPTY_RATE_50_PERCENT
public static final int RESPONSE_EMPTY_RATE_25_PERCENT
public static final int RESPONSE_EMPTY_RATE_0_PERCENT
public static void addRespondent(long surveyId, int respondentEmptyRate) throws java.lang.IllegalArgumentException, com.objectplanet.survey.exception.SurveySystemException
surveyId
- surveyIdjava.lang.IllegalArgumentException
com.objectplanet.survey.exception.SurveySystemException
public static void addRespondents(long surveyId, int noOfRespondents, int respondentEmptyRate) throws java.lang.IllegalArgumentException, com.objectplanet.survey.exception.SurveySystemException
surveyId
- surveyIdjava.lang.IllegalArgumentException
com.objectplanet.survey.exception.SurveySystemException
Built on April 12 2018