Class TimeFrameDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<TimeFrame>
com.motivewave.platform.sdk.common.desc.TimeFrameDescriptor
Describes an exit point for a strategy.
-
Constructor Summary
ConstructorDescriptionTimeFrameDescriptor
(String name, String label, int startTime, int endTime, boolean enabled, boolean supportsDisable) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates the component that will accept the user input.Gets the default value for this setting.int
int
Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setShowLabel, setSupportsDisable
-
Constructor Details
-
TimeFrameDescriptor
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<TimeFrame>
- Returns:
- default value for the setting
-
createInputFX
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 classSettingDescriptor<TimeFrame>
- Parameters:
settings
- settings for the studyreadOnly
- 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
- Overrides:
fromJson
in classSettingDescriptor<TimeFrame>
-