Class InstrumentDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor
com.motivewave.platform.sdk.common.desc.InstrumentDescriptor
Describes an input for selecting an instrument that is part of the study/strategy.
Please Note: you must declare 'multipleInstrument=true' in the study header in order for data
to be returned at runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionInstrumentDescriptor(String name, String label) Constructor.InstrumentDescriptor(String name, String label, boolean chartInstrumentDefault, boolean supportsChartInstrument) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.booleanGets the default attribute for using the chart instrument.booleanIndicates if the input supports specifying the chart instrument.Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createInputFX, createTBInput, createTBInput, getDefaultValue, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, isDisplaySetting, isEnabled, isReadOnly, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setPostLabel, setReadOnly, setShowLabel, setSupportsDisable
-
Constructor Details
-
InstrumentDescriptor
-
InstrumentDescriptor
-
-
Method Details
-
createControl
Description copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
createControlin classSettingDescriptor- Parameters:
settings- settings for the studyreadOnly- true if the component should not accept user input- Returns:
- component that will accept user input.
-
supportsChartInstrument
public boolean supportsChartInstrument()Indicates if the input supports specifying the chart instrument.- Returns:
- true if the input allows the user to specify the chart instrument
-
isChartInstrumentDefault
public boolean isChartInstrumentDefault()Gets the default attribute for using the chart instrument.- Returns:
- true if the chart instrument should be used by default
-
fromJson
- Overrides:
fromJsonin classSettingDescriptor
-