Class SettingsDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingsDescriptor
Contains all of the SettingDescriptor instances that describe the user
configurable settings for the study. These settings are organized into
tabs to be displayed in the Study Dialog.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a dependency between 2 or more SettingDescriptorsvoid
Adds a setting that is not part of the UI.void
addQuickSettings
(SettingDescriptor... sds) Adds a setting that can be displayed in a tool bar or in the Quick Editor.void
addQuickSettings
(String... ids) Retrieves the setting (if it exists) and adds it as a quick setting.void
addStrategySetting
(SettingDescriptor setting) Adds a setting used to configure the strategy.void
addTab
(SettingTab tab) Adds a SettingTab.Convenience Method.Convenience Method.getDefaultValue
(String name) Gets the default value for the setting associated with the given name.Gets the list of setting dependencies.getSetting
(String id) Gets all of the SettingDescriptor associated with the given name.Gets all of the SettingDescriptor instances declared for this studyGets the list of settings that are used to configure the strategy.getTabs()
Gets the tabs (as displayed in the Study Dialog).void
Indicates that the Quick Settings with the given ids should be aligned on the same row (when displaying the Quick Editor)void
setStrategySettings
(List<SettingDescriptor> settings) Sets the settings used to configure the strategy.
-
Constructor Details
-
SettingsDescriptor
public SettingsDescriptor()
-
-
Method Details
-
getSettings
Gets all of the SettingDescriptor instances declared for this study -
getSetting
Gets all of the SettingDescriptor associated with the given name. -
getDefaultValue
Gets the default value for the setting associated with the given name. -
getTabs
Gets the tabs (as displayed in the Study Dialog). -
addTab
Adds a SettingTab. -
addTab
Convenience Method. Creates a SettingTab with the given name and adds it to the the list of tabs.- Parameters:
tabName
- name of the tab- Returns:
- setting tab that was created
-
addTab
Convenience Method. Creates a SettingTab with the given name and adds it to the the list of tabs.- Parameters:
tabName
- name of the tabheader
- header that is displayed at the top of the tab- Returns:
- setting tab that was created
-
addDependency
Adds a dependency between 2 or more SettingDescriptors -
getDependencies
Gets the list of setting dependencies. -
getDependencies
-
addInvisibleSetting
Adds a setting that is not part of the UI. Effectively, these settings are not visible to the user. -
addQuickSettings
Retrieves the setting (if it exists) and adds it as a quick setting. -
addQuickSettings
Adds a setting that can be displayed in a tool bar or in the Quick Editor. -
getQuickSettings
-
rowAlign
Indicates that the Quick Settings with the given ids should be aligned on the same row (when displaying the Quick Editor) -
getRowAligns
-
getStrategySettings
Gets the list of settings that are used to configure the strategy. These are used as part of the Back Test and Optimize features. By default this will return non display descriptors. -
setStrategySettings
Sets the settings used to configure the strategy. These are used by the back test/optimize/walk forward features. -
addStrategySetting
Adds a setting used to configure the strategy. These are used by the back test/optimize/walk forward features.
-