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.booleanisInstrumentedBy(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[]/namekey.- Since:
- 0.5
-
getParameters
This state's parameters. Specified in the optional/states[]/parameterslist key.- Returns:
- An immutable map of state parameters.
- Since:
- 0.6
-
getHooks
This list's state-scoped lifecycle hooks. Specified the optional/states[]/hookslist key.- Returns:
- An immutable list of
StateHookobjects in ordinal order. - Since:
- 0.8
-
getInstrumentedExperiments
List<Experiment> getInstrumentedExperiments()A list of experiments instrumented on this state.- Returns:
- An immutable list of
Experimentobjects. - Since:
- 0.5
-