public class StaticLocalise
extends java.lang.Object
RUN
This will localise with all selected algorithms just one of the possible time delays- either the one which is selected or the one which corresponds to the first detections on each channel in time.
RUN ALL
This localises all potential time delays for the selected detection using all selected algorithms. The algorithm and time delay combo with the lowest chi value is selected as being the default correct localisation.
BATCH RUN
This will localise all detections which are taken from the binary files associated with the detection. Selecting 'loaded data' in the combo box will localise all detections in the datablock, whilst 'all data' will localise all detetion in the associated binary files. For example, for the offline_click_events datablock only those events which have been highlighted in the table will be localised by pressing the batch run button.
Modifier and Type | Class and Description |
---|---|
class |
StaticLocalise.EventLocaliserWorker |
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_RUN_UPDATE |
int |
currentRunConfig |
StaticLocalise.EventLocaliserWorker |
eventLocaliserWorker |
static int |
LOC_END |
static int |
LOC_START |
static int |
RESULT_TABLE_ADD |
static int |
RUN
RUN-loclaise one time delay possibility.
|
static int |
RUN_ALL
Localise all time delay possibilities.
|
static int |
RUN_BATCH
Localise a section of or the entire datat set.
|
static int |
SYMBOL_ADD |
static int |
THREAD_CANCELLED |
Constructor and Description |
---|
StaticLocalise(StaticLocaliserControl staticLocaliserControl)
This constructor determines which algorithms are included.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelThread() |
java.util.ArrayList<AbstractSLAlgorithm> |
getAlgorithms() |
int |
getBestResultIndex()
Get the index of the best result in an index of 1D results
|
int |
getBestTableRow()
Get the ebst table row
|
int |
getCurrentRunConfig()
The current run configuration.
|
java.util.ArrayList<PamDataBlock> |
getDataBlock() |
java.lang.Integer |
getDetectionType() |
StaticLocalise.EventLocaliserWorker |
getEventLocaliserWorker() |
PamDetection |
getPamDetection()
Get the current PAM detection.
|
java.util.ArrayList<SLResult> |
getResults() |
java.util.ArrayList<SLResult> |
getResultsforTable() |
StaticLocaliserControl |
getStaticLocaliserControl() |
java.lang.Integer |
getTDSel() |
void |
localise(int runConfig)
Creates a separate thread and runs the localisation algorithms.
|
void |
notifyPanelUpdate(int type)
Update GUI components
|
void |
runAlgorithms(boolean runIndependentAgorithms)
Iterates through every selected algorithm and calls the runModel() function.
|
void |
setBestResultIndex(int row)
Set the index of the best result in an index of 1D results
|
void |
setCurrentRunConfig(int currentRunConfig) |
void |
setDetectionType(java.lang.Integer detectionType) |
void |
setPamDataBlock(java.util.ArrayList<PamDataBlock> pamDataBlock) |
void |
setPamDetection(PamDetection pamDetection)
Sets the current PamDetection
|
void |
setResults(java.util.ArrayList<SLResult> results) |
void |
settdSel(java.lang.Integer tdSel)
Set the current selected time delay but only if the localiser isn't running.
|
public StaticLocalise.EventLocaliserWorker eventLocaliserWorker
public static final int RUN
public static final int RUN_ALL
public static final int RUN_BATCH
public int currentRunConfig
public static final int LOC_START
public static final int LOC_END
public static final int SYMBOL_ADD
public static final int RESULT_TABLE_ADD
public static final int BATCH_RUN_UPDATE
public static final int THREAD_CANCELLED
public StaticLocalise(StaticLocaliserControl staticLocaliserControl)
staticLocaliserControl
- public void runAlgorithms(boolean runIndependentAgorithms)
runIndependentAgorithms
- true to run only localisation algorithms tagged as independent.public void localise(int runConfig)
runConfig
- public StaticLocalise.EventLocaliserWorker getEventLocaliserWorker()
public void cancelThread()
public int getCurrentRunConfig()
public java.util.ArrayList<AbstractSLAlgorithm> getAlgorithms()
public java.util.ArrayList<PamDataBlock> getDataBlock()
public void setPamDetection(PamDetection pamDetection)
pamDetection
- public void setDetectionType(java.lang.Integer detectionType)
public void settdSel(java.lang.Integer tdSel)
tdSel
- public PamDetection getPamDetection()
public java.lang.Integer getDetectionType()
public java.lang.Integer getTDSel()
public void setPamDataBlock(java.util.ArrayList<PamDataBlock> pamDataBlock)
public java.util.ArrayList<SLResult> getResults()
public int getBestResultIndex()
public void setBestResultIndex(int row)
row
- public StaticLocaliserControl getStaticLocaliserControl()
public java.util.ArrayList<SLResult> getResultsforTable()
public int getBestTableRow()
public void notifyPanelUpdate(int type)
type-flag
- for type of updatepublic void setCurrentRunConfig(int currentRunConfig)
public void setResults(java.util.ArrayList<SLResult> results)