public class DependentOptionsUpdater extends Object implements ChangeListener, Serializable
Modifier and Type | Field and Description |
---|---|
protected ClassOptionWithListenerOption |
evalTaskOption |
protected String |
lastEvalTaskCLIString |
protected EditableMultiChoiceOption |
variedParamNameOption |
Constructor and Description |
---|
DependentOptionsUpdater(ClassOptionWithListenerOption learnerOption,
EditableMultiChoiceOption variedParamNameOption) |
Modifier and Type | Method and Description |
---|---|
static Option |
getVariedOption(OptionHandler learner,
String variedParamName)
Resolve the name of the varied parameter and return the corresponding option.
|
void |
refreshVariedParamNameOption()
Refresh the provided choices of an EditableMultiChoiceOption every time
a ClassOption (the prequential evaluation task) is changed.
|
void |
stateChanged(ChangeEvent e) |
protected String lastEvalTaskCLIString
protected ClassOptionWithListenerOption evalTaskOption
protected EditableMultiChoiceOption variedParamNameOption
public DependentOptionsUpdater(ClassOptionWithListenerOption learnerOption, EditableMultiChoiceOption variedParamNameOption)
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void refreshVariedParamNameOption()
evalTaskOption
- variedParamNameOption
- public static Option getVariedOption(OptionHandler learner, String variedParamName)
null
is returned.learner
- the learner object that has the varied optionvariedParamName
- name of the (nested) varied parameterCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.