Package ai.libs.jaicore.experiments
Interface IExperimentKeyGenerator<T>
-
- Type Parameters:
T
-
- All Known Subinterfaces:
IExperimentJSONKeyGenerator
public interface IExperimentKeyGenerator<T>
An IExperimentKeyGenerator generates and validates values for a computed key field.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumberOfValues()
T
getValue(int i)
Deterministically computes the i-th value in the (totally ordered) set of values for this keyboolean
isValueValid(java.lang.String value)
Tries to cast the given String to an object of the value domain and checks whether any entry in the set corresponds to it.
-
-
-
Method Detail
-
getNumberOfValues
int getNumberOfValues()
- Returns:
- The cardinality of the set of values that may be assigned to this key field
-
getValue
T getValue(int i)
Deterministically computes the i-th value in the (totally ordered) set of values for this key- Parameters:
i
- The index for the value- Returns:
-
isValueValid
boolean isValueValid(java.lang.String value)
Tries to cast the given String to an object of the value domain and checks whether any entry in the set corresponds to it.- Parameters:
value
-- Returns:
- True iff there is one entity in the value set whose toString method evaluates to the given string.
-
-