|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamguardMVC.PamProcess
IshmaelLocator.IshLocProcess
public abstract class IshLocProcess
This is a superclass to a "real" localization class. It gathers the necessary data (samples, phone positions, etc.) for the subclass, then calls calcData(), which the subclass should define. Current children include IshLocPairProcess and IshLocHyperbProcess.
| Field Summary | |
|---|---|
(package private) double[][] |
arraygeom
|
(package private) double |
c
|
(package private) int[] |
hydlist
|
Complex[] |
inputData
|
(package private) IshLocControl |
ishLocControl
|
(package private) PamDataBlock<PamDetection> |
outputDataBlock
|
(package private) Complex[] |
v1
|
(package private) Complex[] |
v2
|
| Fields inherited from class PamguardMVC.PamProcess |
|---|
outputDataBlocks, processName, sampleRate |
| Fields inherited from interface Spectrogram.SpectrogramMarkObserver |
|---|
MOUSE_DOWN, MOUSE_UP |
| Constructor Summary | |
|---|---|
IshLocProcess(IshLocControl ishLocControl)
|
|
| Method Summary | |
|---|---|
(package private) abstract IshLocalisation |
calcData(PamDetection outputUnit,
int referencePhones,
double[][] selectionSams,
double rawSampleRate,
double f0,
double f1)
calcData, which is declared here but defined only in subclasses, uses the selectionSams to calculate a location, which is returned. |
void |
doLocalisation(long startSam,
long durationSam,
double f0,
double f1,
PamRawDataBlock daqBlock)
Do the localization for the call delineated by startMsec, durationMsec, f0, and f1. |
PamDataBlock |
getInputDataBlock()
An IshLocProcess has one input stream (data block). |
java.lang.String |
getMarkObserverName()
|
abstract java.lang.String |
getName()
|
void |
newData(PamObservable o,
PamDataUnit arg1)
Data for localization can arrive from either an upstream data source or from the user drawing a box on the spectrogram. |
void |
pamStart()
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway. |
void |
pamStop()
Stops the process. |
protected void |
prepareMyParams()
|
void |
setParentDataBlock(PamDataBlock newParentDataBlock)
Set a parent data block with the default options of rethreading if set |
void |
setupConnections()
|
void |
spectrogramNotification(SpectrogramDisplay display,
int downUp,
int channel,
long startMsec,
long durationMsec,
double f0,
double f1)
Data for localization can arrive from either an upstream data source or from the user drawing a box on the spectrogram. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
double[][] arraygeom
double c
public Complex[] inputData
int[] hydlist
Complex[] v1
Complex[] v2
IshLocControl ishLocControl
PamDataBlock<PamDetection> outputDataBlock
| Constructor Detail |
|---|
public IshLocProcess(IshLocControl ishLocControl)
| Method Detail |
|---|
public abstract java.lang.String getName()
public void setParentDataBlock(PamDataBlock newParentDataBlock)
PamProcess
setParentDataBlock in class PamProcessnewParentDataBlock - source data block.public PamDataBlock getInputDataBlock()
public void setupConnections()
protected void prepareMyParams()
public void spectrogramNotification(SpectrogramDisplay display,
int downUp,
int channel,
long startMsec,
long durationMsec,
double f0,
double f1)
spectrogramNotification in interface SpectrogramMarkObserverdisplay - spectrogram display; ignoreddownUp - mouse action (only MOUSE_UP events are used)channel - which channel was drawn on; ignoredstartMsec - in absolute msec (since 1970)durationMsec - f0,f1 - frequency range of the selection
public void newData(PamObservable o,
PamDataUnit arg1)
newData in class PamProcessarg1 - data arriving from upstream; type must be PamDetection (or
a subclass of it)
public void doLocalisation(long startSam,
long durationSam,
double f0,
double f1,
PamRawDataBlock daqBlock)
startSam - in absolute msec (since 1970)durationSam - f0,f1 - frequency range to use in calculating the locdaqProcess - the PamProcess producing raw audio data, needed for getting
hydrophone infopublic java.lang.String getMarkObserverName()
getMarkObserverName in interface SpectrogramMarkObserver
abstract IshLocalisation calcData(PamDetection outputUnit,
int referencePhones,
double[][] selectionSams,
double rawSampleRate,
double f0,
double f1)
throws noLocationFoundException
noLocationFoundExceptionpublic void pamStart()
PamProcess
pamStart in class PamProcesspublic void pamStop()
PamProcess
pamStop in class PamProcess
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||