public final class PamModel extends java.lang.Object implements PamModelInterface, PamSettings
Constructor and Description |
---|
PamModel(PamController pamController) |
Modifier and Type | Method and Description |
---|---|
DependencyManager |
getDependencyManager() |
static PamModel |
getPamModel() |
PamModelSettings |
getPamModelSettings() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
isMultiThread() |
boolean |
modelSettings(javax.swing.JFrame frame)
Menu command to open dialog to adjust model settings
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setGpsDataBlock(PamDataBlock gpsDataBlock) |
void |
setMultithreading(boolean multithreading)
Set multithreading for all of PAMGUARD.
|
boolean |
startModel()
Starts the Pam detection process
|
void |
stopModel()
Stops Pam detection
|
public PamModel(PamController pamController)
pamController
- Needs to be parsed a valid reference to a PamControllerpublic static PamModel getPamModel()
public void setGpsDataBlock(PamDataBlock gpsDataBlock)
public boolean startModel()
PamModelInterface
startModel
in interface PamModelInterface
public void stopModel()
PamModelInterface
stopModel
in interface PamModelInterface
public boolean modelSettings(javax.swing.JFrame frame)
PamModelInterface
modelSettings
in interface PamModelInterface
public void setMultithreading(boolean multithreading)
Be warned that this function should very rarely ever be called and has been included only so that the Likelihood detector can turn off multithreading. Once multithreading has been debugged in the Likelihood detector, this function will be removed or deprecated.
multithreading
- public DependencyManager getDependencyManager()
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public boolean isMultiThread()
public PamModelSettings getPamModelSettings()