Class StandardModelPane
java.lang.Object
PamController.SettingsPane<StandardModelParams>
rawDeepLearningClassifier.dlClassification.animalSpot.StandardModelPane
- Direct Known Subclasses:
ArchiveModelPane,GenericModelPane,KetosModelPane,SoundSpotModelPane
Settings pane for SoundSpot
- Author:
- Jamie Macaulay
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PamHBoxUse the default segment lengthprotected org.controlsfx.control.PopOverA pop over to show the advanced pane.protected org.controlsfx.control.ToggleSwitchDefault segment length. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the advanced settings pane.javafx.scene.NodeGet node for GUI change of settings.Get the currently selected model file.static intgetDefaultSamples(DLClassiferModel dlClassifierModel, StandardModelParams paramsClone) getName()Get the name of the pane.getParams(StandardModelParams currParams) Get settings from the pane.abstract DLStatusnewModelSelected(File file) Called whenever a new model has been selectedvoidCalled when settings pane is first initialised.voidsetAdvSettingsPane(SettingsPane advSettingsPane) Set the advanced settings pane.voidsetCurrentSelectedFile(File currentSelectedFile) Set the currently selected model filevoidsetParams(StandardModelParams currParams) Called whenever the pane is first shown/open to set pane to show current settings.voidsetParamsClone(StandardModelParams paramsClone) Set the params clone.voidshowAdvPane(PamButton advSettingsButton) Sho0w the advanced settings.Methods inherited from class PamController.SettingsPane
getAWTWindow, getFXWindow, getHelpPoint, getOwnerWindow, notifyChange, repackContents, setDefaults, setOwnerWindow
-
Field Details
-
popOver
protected org.controlsfx.control.PopOver popOverA pop over to show the advanced pane. -
usedefaultSeg
protected org.controlsfx.control.ToggleSwitch usedefaultSegDefault segment length. -
defaultSegBox
Use the default segment length
-
-
Constructor Details
-
StandardModelPane
-
-
Method Details
-
getDefaultSamples
public static int getDefaultSamples(DLClassiferModel dlClassifierModel, StandardModelParams paramsClone) -
newModelSelected
Called whenever a new model has been selected- Parameters:
file- - the file.- Returns:
-
showAdvPane
Sho0w the advanced settings.- Parameters:
advSettingsButton- - the advanced settings.
-
getParams
Description copied from class:SettingsPaneGet settings from the pane.- Specified by:
getParamsin classSettingsPane<StandardModelParams>- Returns:
- settings class
-
setParams
Description copied from class:SettingsPaneCalled whenever the pane is first shown/open to set pane to show current settings.- Specified by:
setParamsin classSettingsPane<StandardModelParams>- Parameters:
currParams- - current settings class.
-
getName
Description copied from class:SettingsPaneGet the name of the pane.- Specified by:
getNamein classSettingsPane<StandardModelParams>- Returns:
- name of the pane
-
getContentNode
public javafx.scene.Node getContentNode()Description copied from class:SettingsPaneGet node for GUI change of settings.- Specified by:
getContentNodein classSettingsPane<StandardModelParams>
-
paneInitialized
public void paneInitialized()Description copied from class:SettingsPaneCalled 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:
paneInitializedin classSettingsPane<StandardModelParams>
-
getParamsClone
-
setParamsClone
Set the params clone.- Parameters:
paramsClone-
-
getCurrentSelectedFile
Get the currently selected model file.- Returns:
- the currently selected model file.
-
setCurrentSelectedFile
Set the currently selected model file- Parameters:
currentSelectedFile- - the currently selected model file.
-
getAdvSettingsPane
Get the advanced settings pane.- Returns:
- the advanced settings pane.
-
setAdvSettingsPane
Set the advanced settings pane. The advanced s pane to set.- Parameters:
advSettingsPane-
-
getVBoxHolder
-