public class MarkovChainSL extends AbstractSLAlgorithm implements PamSettings
Modifier and Type | Field and Description |
---|---|
static int |
BURN_IN
Flag for locShape which identifies it as part of the burn in phase of the MCMC chain.
|
static int |
PROB_DISTRIBUTION
Flag for locShape which identifies it as part of the final probability distribution of the MCMC chain.
|
static int |
SIMPLE_MCMC_LOCSHAPE
Flag for simple locShape.
|
Constructor and Description |
---|
MarkovChainSL(StaticLocalise staticLocaliser) |
Modifier and Type | Method and Description |
---|---|
javax.media.j3d.Appearance |
getBurnInAppearance() |
SLPanel |
getDisplayPanel()
A panel which shows results, chi distributions etc.
|
javax.media.j3d.Appearance |
getHighlightAppearance()
If the symbol is selected it changes appearance to this.
|
MCMC |
getMCMCAlgorithm() |
java.lang.String |
getName()
Algorithm name
|
javax.media.j3d.Appearance |
getNormalAppearance()
The normal appearance of the 3D localisation symbol.
|
PamSymbol |
getPlotSymbol(int iResult)
Simple 2D symbol for the map and results table
|
javax.media.j3d.TransformGroup |
getPlotSymbol3D(SLResult staticLocalisationResults)
Creates a specific MCMC loc symbol.
|
javax.media.j3d.TransformGroup |
getProbDistributionSymb(SLResult staticLocalisationResults)
Returns a symbol showing the true probability distribution of the MCMC algorithm.
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
javax.media.j3d.TransformGroup |
getSimpleSymbol(SLResult staticLocalisationResults)
Returns a cross showing the errors of the localisation
|
java.lang.String |
getToolTipText()
Tip for different algorithms - usually brief description.
|
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
hasParameters()
Specifies if the algorithm has a settings dialog
|
boolean |
parametersDialog()
Opens a settings dialog if the 'settings' button on the algorithm panel is selected.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
java.util.ArrayList<SLResult> |
runModel()
Run model.
|
java.util.ArrayList<SLResult> |
runModel(java.lang.Integer tdSel)
Need to have this for the Mimplex localiser.
|
void |
setHighlightAppearance(LocShape3D locShape)
Set the highlighted appearance of a locShape.Note usually this will just be using getHighlightAppearance() functionality, however more complicated shapes may want to modify this function.
|
void |
setNormalAppearance(LocShape3D locShape)
Set the normal appearance of the locShape.
|
void |
update(int updateType)
Called whenever updates are called in other panels is changed.
|
calcDetectionMatchTDs, calcNonNullDelays, getCurrentDetection, getDelayArray, getHydrophonePos, getSymbolColour, getSymbolHightlightColour, getTimeDelayErrors, getTimeDelays, isIndependent, isSelected, setCurrentDetection, setSelected, stop
public static final int BURN_IN
public static final int PROB_DISTRIBUTION
public static final int SIMPLE_MCMC_LOCSHAPE
public MarkovChainSL(StaticLocalise staticLocaliser)
public java.lang.String getName()
SLAlgorithmModel
getName
in interface SLAlgorithmModel
public java.lang.String getToolTipText()
SLAlgorithmModel
getToolTipText
in interface SLAlgorithmModel
public boolean parametersDialog()
SLAlgorithmModel
parametersDialog
in interface SLAlgorithmModel
public java.util.ArrayList<SLResult> runModel()
SLAlgorithmModel
pamDetection- the current detection selected in the control panel. tdSel- the current selected time delay on the map, loclaisationVisualisation and maybe the localisationInformation panels. detectionType- this is an integer flag which is datablock specific and is passed to the AbstractDetectionMatch class-usually specifies which corresponding detections to calculate time delays from. For example, 'detectiontype' in clickDetectionMatch refers to events, classified species and a combination of the two. For whistles this may refer to whistle classification etc- tdSel refers to which time delay to select. Abstractdetectionmatch creates an array of possible time delays for a given detection. Using these three bits of info use the detections subclass of AbstractDetectionMatch to calc time delays and loclaise.
runModel
in interface SLAlgorithmModel
public java.util.ArrayList<SLResult> runModel(java.lang.Integer tdSel)
AbstractSLAlgorithm
runModel
in class AbstractSLAlgorithm
tdSel
- - selected time dealy possibilitypublic javax.media.j3d.TransformGroup getPlotSymbol3D(SLResult staticLocalisationResults)
getPlotSymbol3D
in interface SLAlgorithmModel
getPlotSymbol3D
in class AbstractSLAlgorithm
public javax.media.j3d.TransformGroup getSimpleSymbol(SLResult staticLocalisationResults)
staticLocalisationResults
- public javax.media.j3d.TransformGroup getProbDistributionSymb(SLResult staticLocalisationResults)
staticLocalisationResults
- public void setNormalAppearance(LocShape3D locShape)
SLAlgorithmModel
setNormalAppearance
in interface SLAlgorithmModel
setNormalAppearance
in class AbstractSLAlgorithm
public void setHighlightAppearance(LocShape3D locShape)
SLAlgorithmModel
setHighlightAppearance
in interface SLAlgorithmModel
setHighlightAppearance
in class AbstractSLAlgorithm
public javax.media.j3d.Appearance getNormalAppearance()
SLAlgorithmModel
getNormalAppearance
in interface SLAlgorithmModel
getNormalAppearance
in class AbstractSLAlgorithm
public javax.media.j3d.Appearance getBurnInAppearance()
public javax.media.j3d.Appearance getHighlightAppearance()
SLAlgorithmModel
getHighlightAppearance
in interface SLAlgorithmModel
getHighlightAppearance
in class AbstractSLAlgorithm
public PamSymbol getPlotSymbol(int iResult)
SLAlgorithmModel
getPlotSymbol
in interface SLAlgorithmModel
public boolean hasParameters()
SLAlgorithmModel
hasParameters
in interface SLAlgorithmModel
public SLPanel getDisplayPanel()
SLAlgorithmModel
getDisplayPanel
in interface SLAlgorithmModel
getDisplayPanel
in class AbstractSLAlgorithm
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public void update(int updateType)
SLAlgorithmModel
update
in interface SLAlgorithmModel
public MCMC getMCMCAlgorithm()