public class RoccaProcess extends PamProcess
Constructor and Description |
---|
RoccaProcess(RoccaControl roccaControl)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
NoiseDataBlock |
getClickNoiseSourceData() |
TrackedClickDataBlock |
getClickSourceData() |
java.io.File |
getDataBlockFilename(RoccaContourDataBlock rcdb,
java.lang.String ext,
int channel,
int thisDetection,
java.lang.String sNum)
Generates a filename for the wav clip and the csv file containing the
contour points, based on the filename template stored in RoccaParameters
|
ClickDetection |
getLatestClickNoise() |
AbstractWhistleDataBlock |
getWhistleSourceData() |
boolean |
isClassifierLoaded()
Checks to see if classifier has been loaded
|
RoccaContourDataBlock |
newClickDetectorData(ClickDetection clickDetection)
Takes a ClickDetection created in the Click detector,
and copies the data into a RoccaContourDataBlock for further analysis and
classification.
|
void |
newData(PamObservable o,
PamDataUnit arg)
this method called when new data arrives
|
RoccaContourDataBlock |
newWMDetectorData(ConnectedRegionDataUnit wmDataUnit)
Takes an AbstractWhistleDataUnit created in the Whistle and Moan detector,
and copies the data into a RoccaContourDataBlock for further analysis and
classification
serialVersionUID = 9
if either firstIndx or lastIndx cannot be determined, return a null to the calling method
|
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.
|
void |
prepareProcess()
Called for each process before any of them receive the PamStart command
|
boolean |
saveContourPoints(RoccaContourDataBlock rcdb,
int channel,
int thisDetection,
java.lang.String sNum)
Saves the contour points in the datablock in a csv file.
|
boolean |
saveContourStats(RoccaContourDataBlock rcdb,
int channel,
int thisDetection,
java.lang.String sNum)
Saves all contour stats to the contour stats summary file, as defined in
the Rocca Parameters.
|
boolean |
saveContourStats(RoccaContourDataBlock rcdb,
int channel,
int thisDetection,
java.lang.String sNum,
java.lang.String source)
Saves all contour stats to the contour stats summary file, as defined in
the Rocca Parameters.
|
void |
setClassifierLoaded(boolean classifierLoaded)
Sets the classifier loaded flag
|
void |
setClickNoiseSourceData(NoiseDataBlock clickNoiseSourceData) |
void |
setClickSourceData(TrackedClickDataBlock clickSourceData) |
void |
setLatestClickNoise(ClickDetection latestClickNoise) |
void |
setupProcess()
Method run on startup
|
void |
setWhistleSourceData(AbstractWhistleDataBlock whistleSourceData) |
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setSampleRate, toString, update, updateData
public RoccaProcess(RoccaControl roccaControl)
roccaControl
- public void pamStart()
PamProcess
pamStart
in class PamProcess
public void pamStop()
PamProcess
pamStop
in class PamProcess
public void prepareProcess()
PamProcess
prepareProcess
in class PamProcess
public void newData(PamObservable o, PamDataUnit arg)
newData
in class PamProcess
public boolean isClassifierLoaded()
public void setClassifierLoaded(boolean classifierLoaded)
classifierLoaded
- true=loaded, false=not loadedpublic void setupProcess()
setupProcess
in class PamProcess
public RoccaContourDataBlock newWMDetectorData(ConnectedRegionDataUnit wmDataUnit)
wmDataUnit
- the ConnectedRegionDataUnit containing the whistlepublic RoccaContourDataBlock newClickDetectorData(ClickDetection clickDetection)
clickDetection
- a ClickDetection objectpublic boolean saveContourStats(RoccaContourDataBlock rcdb, int channel, int thisDetection, java.lang.String sNum)
public boolean saveContourStats(RoccaContourDataBlock rcdb, int channel, int thisDetection, java.lang.String sNum, java.lang.String source)
public boolean saveContourPoints(RoccaContourDataBlock rcdb, int channel, int thisDetection, java.lang.String sNum)
roccaContourDataBlock
- the datablock containing the selected
whistle contourpublic java.io.File getDataBlockFilename(RoccaContourDataBlock rcdb, java.lang.String ext, int channel, int thisDetection, java.lang.String sNum)
rcdb
- The RoccaContourDataBlock containing the data to saveext
- The filename extension (wav or csv)public AbstractWhistleDataBlock getWhistleSourceData()
public void setWhistleSourceData(AbstractWhistleDataBlock whistleSourceData)
whistleSourceData
- the whistleSourceData to setpublic TrackedClickDataBlock getClickSourceData()
public void setClickSourceData(TrackedClickDataBlock clickSourceData)
clickSourceData
- the clickSourceData to setpublic NoiseDataBlock getClickNoiseSourceData()
public void setClickNoiseSourceData(NoiseDataBlock clickNoiseSourceData)
clickNoiseSourceData
- the clickNoiseSourceData to setpublic ClickDetection getLatestClickNoise()
public void setLatestClickNoise(ClickDetection latestClickNoise)
latestClickNoise
- the latestClickNoise to set