Package com.variant.share.schema
Interface Variation.Experience
- Enclosing interface:
- Variation
public static interface Variation.Experience
Representation of the
/variations[]/experience
key.
Encapsulates data related to a particular variation 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 TypeMethodDescriptiongetName()
This experience's name, as provided by the/variations[]/experiences[]/name
key.Variation parameters defined by this experience or this variation.The containing variation.boolean
Is this the control experience, as provided by the/variations[]/experiences[]/isControl
key.boolean
isDefinedOn
(State state) Does this experience instrument a given state, as defined by the variations[].experience.onState.experiences element.
-
Method Details
-
getName
String getName()This experience's name, as provided by the/variations[]/experiences[]/name
key.- Since:
- 0.5
-
getVariation
Variation getVariation()The containing variation.- Since:
- 0.5
-
isControl
boolean isControl()Is this the control experience, as provided by the/variations[]/experiences[]/isControl
key. If omitted,true
is assumed for a sole experience, whilefalse
is assumed otherwise.- Since:
- 0.5
-
getParameters
Variation parameters defined by this experience or this variation. Parameters defined at the experience level override like-named parameters at the variation level.- Returns:
- An immutable map of state parameters.
- Since:
- 1.0
-