Class TimeFrameDescriptor

java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<TimeFrame>
com.motivewave.platform.sdk.common.desc.TimeFrameDescriptor

public class TimeFrameDescriptor extends SettingDescriptor<TimeFrame>
Describes an exit point for a strategy.
  • Constructor Details

    • TimeFrameDescriptor

      public TimeFrameDescriptor(String name, String label, int startTime, int endTime, boolean enabled, boolean supportsDisable)
  • Method Details

    • getDefaultValue

      public TimeFrame getDefaultValue()
      Gets the default value for this setting.
      Overrides:
      getDefaultValue in class SettingDescriptor<TimeFrame>
      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<TimeFrame>
      Parameters:
      settings - settings for the study
      readOnly - true if the component should not accept user input
      Returns:
      component that will accept user input.
    • getStartTime

      public int getStartTime()
    • getEndTime

      public int getEndTime()
    • fromJson

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