Class DoubleDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Double>
com.motivewave.platform.sdk.common.desc.DoubleDescriptor

public class DoubleDescriptor extends SettingDescriptor<Double>
Describes a double value that is part of the study/strategy settings. These values may be given a minimum, maximum and step value.
  • Constructor Details

    • DoubleDescriptor

      public DoubleDescriptor(String name, String label, double defaultValue, double minValue, double maxValue, double step)
      Constructor
      Parameters:
      name - name of this setting (key)
      label - label displayed to the user
      defaultValue - default double value
      minValue - minimum double value
      maxValue - maximum double value
      step - step increment
  • Method Details

    • getDefaultValue

      public Double getDefaultValue()
      Gets the default value for this setting.
      Overrides:
      getDefaultValue in class SettingDescriptor<Double>
      Returns:
      default value for the setting
    • createInputFX

      public javafx.scene.Node createInputFX(Settings settings, boolean readOnly)
      Description copied from class: SettingDescriptor
      Creates the component that will accept the user input. This is called by the study framework.
      Specified by:
      createInputFX in class SettingDescriptor<Double>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • getMinValue

      public double getMinValue()
      Gets the minimum allowable value.
    • getMaxValue

      public double getMaxValue()
      Gets the maximum allowable value.
    • getStep

      public double getStep()
      Gets the incremental step.
    • fromJson

      public Object fromJson(Object json)
      Overrides:
      fromJson in class SettingDescriptor<Double>