Class InputDependency

java.lang.Object
com.motivewave.platform.sdk.common.desc.InputDependency
Direct Known Subclasses:
EnabledDependency, TradeLotsDependency

public class InputDependency extends Object
  • Constructor Details

    • InputDependency

      public InputDependency(String src, String... fields)
  • Method Details

    • onSourceUpdated

      public void onSourceUpdated(Settings settings, Map<String,​Object> fields)
      Override this method to implement a dependency between fields.
    • getSource

      public String getSource()
      Gets the identifier for the primary source of this dependency.
    • setSource2

      public void setSource2(String src)
      Sets an option secondary source. If set the fields will be enabled if the source and source2 are enabled.
      Parameters:
      src - identifier of the secondary source
    • getSource2

      public String getSource2()
      Gets an option secondary source. If set the fields will be enabled if the source and source2 are enabled.
      Returns:
      identifier of the secondary source
    • setSource3

      public void setSource3(String src)
      Sets an option tertiary source. If set the fields will be enabled if the source and source2 and source3 are enabled.
      Parameters:
      src - identifier of the tertiary source
    • getSource3

      public String getSource3()
      Gets an option tertiary source. If set the fields will be enabled if the source and source2 and source3 are enabled.
      Returns:
      identifier of the tertiary source
    • getDependentFields

      public List<String> getDependentFields()
    • getSettingsDescriptor

      public SettingsDescriptor getSettingsDescriptor()
    • setSettingsDescriptor

      public void setSettingsDescriptor(SettingsDescriptor sd)