Package com.variant.share.schema
Interface Experiment.Experience
- Enclosing interface:
- Experiment
public static interface Experiment.Experience
Representation of the
/experiments[]/experience key.
Encapsulates data related to a particular experiment experience.
Each experience represents an alternate code path. Exactly one experience must be
defined as control, which typically represents the existing code path.- Since:
- 0.5
-
Method Summary
Modifier and TypeMethodDescriptionThe containing experiment.getName()This experience's name, as provided by the/experiments[]/experiences[]/namekey.Experiment parameters defined by this experience or this experiment.booleanIs this the control experience, as provided by the/experiments[]/experiences[]/isControlkey.booleanisDefinedOn(State state) Does this experience instrument a given state, as defined by the experiments[].experience.onState.experiences element.
-
Method Details
-
getName
String getName()This experience's name, as provided by the/experiments[]/experiences[]/namekey.- Since:
- 0.5
-
getExperiment
Experiment getExperiment()The containing experiment.- Since:
- 0.5
-
isControl
boolean isControl()Is this the control experience, as provided by the/experiments[]/experiences[]/isControlkey. If omitted,trueis assumed for a sole experience, whilefalseis assumed otherwise.- Since:
- 0.5
-
getParameters
Experiment parameters defined by this experience or this experiment. Parameters defined at the experience level override like-named parameters at the experiment level.- Returns:
- An immutable map of state parameters.
- Since:
- 1.0
-