Interface StateVariant


public interface StateVariant
Representation of an instrumentation of a given state by a given variant. Specified by an element of the required /experiments[]/onState[]/variants list key.
Since:
0.5
  • Method Details

    • getOnState

      Experiment.OnState getOnState()
      The containing Experiment.OnState object.
      Since:
      0.5
    • getState

      State getState()
      The state associated with this state variant. Equivalent to getOnState().getState().
      Since:
      0.6
    • getExperiment

      Experiment getExperiment()
      The experiment associated with this state variant. Equivalent to getOnState().getExperiment().
      Since:
      0.5
    • getExperience

      Experiment.Experience getExperience()
      This variant's proper experience. Specified in the required /experiments[]/onState[]/variants[]/experience key.
      Since:
      0.5
    • getConcurrentExperiences

      List<Experiment.Experience> getConcurrentExperiences()
      The list of this variant's concurrent experiences. Specified in the optional /experiments[]/onState[]/variants[]/concurrentExperiences list key.
      Since:
      0.5
    • isProper

      boolean isProper()
      Is this a proper variant? Equivalent to getConcurrentExperiences().isEmpty().
      Since:
      0.6
    • getParameters

      Map<String,String> getParameters()
      This variant's state parameters.
      Returns:
      Immutable map containing all parameters defined by this state variant, subject to parameter cascading.
      Since:
      0.5