water.api
Class RequestArguments.H2OCategoryWeights

java.lang.Object
  extended by water.Iced
      extended by water.api.RequestArguments.Argument<T>
          extended by water.api.RequestArguments.MultipleText<double[]>
              extended by water.api.RequestArguments.H2OCategoryWeights
All Implemented Interfaces:
java.lang.Cloneable, Request.Filter, Freezable
Enclosing class:
RequestArguments

public class RequestArguments.H2OCategoryWeights
extends RequestArguments.MultipleText<double[]>


Field Summary
 RequestArguments.H2OHexKeyCol _classCol
           
 double _defaultValue
           
 RequestArguments.H2OHexKey _key
           
 RequestArguments.RFModelKey _modelKey
           
 
Fields inherited from class water.api.RequestArguments.Argument
_displayName, _field, _hideInQuery, _name, _prerequisites, _readOnly, _requestHelp, _required
 
Constructor Summary
RequestArguments.H2OCategoryWeights(java.lang.String name, RequestArguments.H2OHexKey key, RequestArguments.H2OHexKeyCol classCol, double defaultValue)
           
RequestArguments.H2OCategoryWeights(java.lang.String name, RequestArguments.RFModelKey modelKey, RequestArguments.H2OHexKey key, RequestArguments.H2OHexKeyCol classCol, double defaultValue)
           
 
Method Summary
protected  double[] defaultValue()
          Returns the default value of the argument.
protected  java.lang.String[] determineColumnClassNames(int maxClasses)
           
protected  double[] parse(java.lang.String input)
          Override this method to provide parsing of the input string to the Java expected value.
protected  java.lang.String queryDescription()
          Returns the query description.
protected  java.lang.String[] textNames()
           
protected  java.lang.String[] textValues()
           
 
Methods inherited from class water.api.RequestArguments.MultipleText
jsRefresh, jsValue, queryElement, textPrefixes, textSuffix, textSuffixes
 
Methods inherited from class water.api.RequestArguments.Argument
addPrerequisite, check, disable, disable, disabled, errors, jsAddons, originalValue, query, queryAddons, queryComment, record, refreshOnChange, requestHelp, reset, run, setRefreshOnChange, specified, valid, value
 
Methods inherited from class water.Iced
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_modelKey

public final RequestArguments.RFModelKey _modelKey

_key

public final RequestArguments.H2OHexKey _key

_classCol

public final RequestArguments.H2OHexKeyCol _classCol

_defaultValue

public final double _defaultValue
Constructor Detail

RequestArguments.H2OCategoryWeights

public RequestArguments.H2OCategoryWeights(java.lang.String name,
                                           RequestArguments.RFModelKey modelKey,
                                           RequestArguments.H2OHexKey key,
                                           RequestArguments.H2OHexKeyCol classCol,
                                           double defaultValue)

RequestArguments.H2OCategoryWeights

public RequestArguments.H2OCategoryWeights(java.lang.String name,
                                           RequestArguments.H2OHexKey key,
                                           RequestArguments.H2OHexKeyCol classCol,
                                           double defaultValue)
Method Detail

determineColumnClassNames

protected java.lang.String[] determineColumnClassNames(int maxClasses)
                                                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

textValues

protected java.lang.String[] textValues()
Specified by:
textValues in class RequestArguments.MultipleText<double[]>

textNames

protected java.lang.String[] textNames()
Specified by:
textNames in class RequestArguments.MultipleText<double[]>

parse

protected double[] parse(java.lang.String input)
                  throws java.lang.IllegalArgumentException
Description copied from class: RequestArguments.Argument
Override this method to provide parsing of the input string to the Java expected value. The input is guaranteed to be non-empty when this method is called and all prerequisities are guaranteed to be valid before this method is called.

Specified by:
parse in class RequestArguments.Argument<double[]>
Throws:
java.lang.IllegalArgumentException

defaultValue

protected double[] defaultValue()
                         throws java.lang.IllegalArgumentException
Description copied from class: RequestArguments.Argument
Returns the default value of the argument. Note that the method will be called also on required arguments, in which case it is ok return null. It is kept abstract because defining a proper default value might be tricky and in many case you do not want it to be null. Overriding it always makes you think:)

Specified by:
defaultValue in class RequestArguments.Argument<double[]>
Throws:
java.lang.IllegalArgumentException

queryDescription

protected java.lang.String queryDescription()
Description copied from class: RequestArguments.Argument
Returns the query description. This is a concise description of a correct value for the argument. generally used as a placeholder in the html query elements.

Specified by:
queryDescription in class RequestArguments.Argument<double[]>