Package com.variant.share.schema
Interface State
public interface State
Representation of a state. Specified in an element of the required
/states
list key.- Since:
- 0.5
-
Method Summary
Modifier and TypeMethodDescriptiongetHooks()
This list's state-scoped lifecycle hooks.A list of experiments instrumented on this state.getName()
This state's name.This state's parameters.The containing experiment schema.boolean
isInstrumentedBy
(Experiment experiment) Is this state instrumented by a given experiment.
-
Method Details
-
getSchema
Schema getSchema()The containing experiment schema.- Since:
- 0.6
-
getName
String getName()This state's name. Specified in the required/states[]/name
key.- Since:
- 0.5
-
getParameters
This state's parameters. Specified in the optional/states[]/parameters
list key.- Returns:
- An immutable map of state parameters.
- Since:
- 0.6
-
getHooks
This list's state-scoped lifecycle hooks. Specified the optional/states[]/hooks
list key.- Returns:
- An immutable list of
StateHook
objects in ordinal order. - Since:
- 0.8
-
getInstrumentedExperiments
List<Experiment> getInstrumentedExperiments()A list of experiments instrumented on this state.- Returns:
- An immutable list of
Experiment
objects. - Since:
- 0.5
-