public interface ExperimentBaseEvaluateCmd extends TaskCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | defaultCommandClassName
defaultCommandClassName is the default implementation class used by the command factory to instantiate this command if the interface com.ibm.commerce.experimentation.commands.ExperimentBaseEvaluateCmd is not defined in the CMDREG table.
|
static java.lang.String | NAME
The name of this interface.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Short | generateExperimentResult(ExperimentRuleDefinition ruleDefinition)
This method returns the ID of a control or test element in the given rule definition object based on the comparison result between the element's display frequency and the randomly generated number.
|
java.lang.Short | getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, boolean isUserFallBack)
This method returns the ID of the control or test element to be returned as the result of the experiment evaluation from the database, based on the given experiment, and user or session, depending on the fallback flag.
|
java.lang.Short | getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.String sessionId)
This method returns the ID of the control or test element to be returned as the result of the experiment evaluation from the database, based on the given experiment and session ID.
|
void | insertExperimentResultToDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, java.lang.Short resultNumber)
This method inserts a new record to the EXPRESULT table in the database which holds the experiment result uniquely identified by the experiment, session and user.
|
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
java.lang.Short generateExperimentResult(ExperimentRuleDefinition ruleDefinition)
java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.String sessionId)
java.lang.Short getExperimentResultFromDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, boolean isUserFallBack)
void insertExperimentResultToDB(java.lang.Integer experimentId, java.lang.Long userId, java.lang.String sessionId, java.lang.Short resultNumber)