Class DLSettingsPane

java.lang.Object
PamController.SettingsPane<RawDLParams>
rawDeepLearningClassifier.layoutFX.DLSettingsPane

public class DLSettingsPane extends SettingsPane<RawDLParams>
The settings pane.
Author:
Jamie Macaulay
  • Field Details

    • MAX_WIDTH

      public static double MAX_WIDTH
  • Constructor Details

    • DLSettingsPane

      public DLSettingsPane(DLControl dlControl)
  • Method Details

    • showAdvPane

      public void showAdvPane()
      Creates pane allowing the user to change fine scale things such as error limits.
    • getSegmentLenSpinner

      public PamSpinner<Integer> getSegmentLenSpinner()
      Get the segment length spinner.
      Returns:
      the segment spinner.
    • getHopLenSpinner

      public PamSpinner<Integer> getHopLenSpinner()
      Get the segment hop spinner.
      Returns:
      the segment spinner.
    • getParams

      public RawDLParams getParams(RawDLParams currParams)
      Description copied from class: SettingsPane
      Get settings from the pane.
      Specified by:
      getParams in class SettingsPane<RawDLParams>
      Returns:
      settings class
    • statusToWarnings

      public static PamWarning statusToWarnings(DLStatus dlStatus)
    • showWarning

      public void showWarning(DLStatus dlWarning)
      Show a warning dialog for the status
      Parameters:
      the - status to show
    • showWarning

      public void showWarning(PamWarning dlWarning)
      Show a warning dialog.
      Parameters:
      the - warning to show.
    • showWarning

      public void showWarning(ArrayList<PamWarning> dlWarnings)
      Show a warning dialog.
      Parameters:
      dlWarnings - - list of warnings - the most important will be shown.
    • setParams

      public void setParams(RawDLParams currParams)
      Description copied from class: SettingsPane
      Called whenever the pane is first shown/open to set pane to show current settings.
      Specified by:
      setParams in class SettingsPane<RawDLParams>
      Parameters:
      currParams - - current settings class.
    • getName

      public String getName()
      Description copied from class: SettingsPane
      Get the name of the pane.
      Specified by:
      getName in class SettingsPane<RawDLParams>
      Returns:
      name of the pane
    • getContentNode

      public javafx.scene.layout.Pane getContentNode()
      Description copied from class: SettingsPane
      Get node for GUI change of settings.
      Specified by:
      getContentNode in class SettingsPane<RawDLParams>
    • paneInitialized

      public void paneInitialized()
      Description copied from class: SettingsPane
      Called when settings pane is first initialised. This can be used if for example, a the size of a pane is needed for a param. (Sizes are only initialised when Nodes are shown);
      Specified by:
      paneInitialized in class SettingsPane<RawDLParams>
    • getSelectedParentDataBlock

      public PamDataBlock getSelectedParentDataBlock()
      Get the data block currently selected in the pane.
      Returns:
      the data block currently selected in the pane.
    • getDLControl

      public DLControl getDLControl()
      Get the DLControl associated with the pane.
      Returns:
      a reference to the DLControl.
    • setSegmentLength

      public void setSegmentLength(Double defaultSegmentLen)
      Convenience class to set the segment length in samples from milliseconds
      Parameters:
      defaultSegmentLen - - the segment length in milliseconds.
    • setHopLength

      public void setHopLength(Double hopLength)
      Convenience class to set the hop length in samples from milliseconds
      Parameters:
      defaultSegmentLen - - the segment length in milliseconds.