public class DynamicParameters
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| class  | DynamicParameters.NodeNode in the option tree (well, actually list) | 
| static class  | DynamicParameters.RemainingOptionsDummy option class that represents unhandled options | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | BIT_DEFAULT_VALUEBit for an option with a default value | 
| static int | BIT_INCOMPLETEBit for an option that should be set | 
| static int | BIT_INVALIDBit for an option with an invalid value | 
| static int | BIT_OPTIONALBit for an optional value | 
| static int | BIT_SYNTAX_ERRORBit for an option containing an syntax error | 
| protected java.util.ArrayList<DynamicParameters.Node> | parametersParameter storage | 
| protected static OptionID | REMAINING_OPTIONS_IDOptionID for unrecognized options. | 
| static java.lang.String | STRING_OPTIONALPseudo-value used in options that are optional, to unset. | 
| static java.lang.String | STRING_USE_DEFAULTPseudo-value used in dropdowns for options that have a default value | 
| Constructor and Description | 
|---|
| DynamicParameters()Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addParameter(Parameter<?> option,
            java.lang.String value,
            int bits,
            int depth)Add a single parameter to the list | 
| DynamicParameters.Node | getNode(int rowIndex)Get the node in this nth row of the flattened tree. | 
| void | serializeParameters(java.util.ArrayList<java.lang.String> p)Serialize parameters into an array list to pass to setParameters() | 
| int | size()Get the size | 
| void | updateFromTrackParameters(TrackParameters track)Update the Parameter list from the collected options of an ELKI context | 
public static final int BIT_INCOMPLETE
public static final int BIT_INVALID
public static final int BIT_SYNTAX_ERROR
public static final int BIT_OPTIONAL
public static final int BIT_DEFAULT_VALUE
public static final java.lang.String STRING_USE_DEFAULT
public static final java.lang.String STRING_OPTIONAL
protected java.util.ArrayList<DynamicParameters.Node> parameters
protected static OptionID REMAINING_OPTIONS_ID
public int size()
public void updateFromTrackParameters(TrackParameters track)
track - Tracked Parameterspublic void addParameter(Parameter<?> option, java.lang.String value, int bits, int depth)
option - Optionvalue - Valuebits - Bitsdepth - Depthpublic void serializeParameters(java.util.ArrayList<java.lang.String> p)
p - Output list (will not be emptied)public DynamicParameters.Node getNode(int rowIndex)
rowIndex - row indexCopyright © 2019 ELKI Development Team. License information.