public class PamRawDataBlock extends AcousticDataBlock<RawDataUnit>
Has the extra function for getting raw data samples out of the blocks. Also has some special constructors that set the parent and source data blocks to null. However, Raw data my be poduced by intermediate processes as well, in which case parent and source blocks will not be null
ITERATOR_END, MATCH_AFTER, MATCH_BEFORE, MATCH_EXACT, MIX_DONOTHING, MIX_INTODATABASE, MIX_OUTOFDATABASE, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, OFFLINE_DATA_CANCEL, OFFLINE_DATA_INTERRUPT, OFFLINE_DATA_WAIT, orderLock, POSITION_AFTER, POSITION_BEFORE, REFERENCE_ABSOLUTE, REFERENCE_CURRENT, REQUEST_DATA_LOADED, REQUEST_DATA_PARTIAL_LOAD, REQUEST_EXCEPTION, REQUEST_INTERRUPTED, REQUEST_NO_DATA, REQUEST_SAME_REQUEST
Constructor and Description |
---|
PamRawDataBlock(java.lang.String name,
PamProcess parentProcess,
int channelMap,
float sampleRate) |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(PamObserver o)
Adds a PamObserver, which will then receive notifications when data is
added.
|
void |
addObserver(PamObserver o,
boolean reThread) |
void |
addPamData(RawDataUnit pamDataUnit)
Adds a new PamDataUnit to the PamDataBlock.
|
ChannelListManager |
getChannelListManager() |
double[][] |
getSamples(long startSample,
int duration,
int channelMap)
Creates an array and fills it with raw data samples.
|
double[][] |
getSamples(long startSample,
int duration,
int channelMap,
double[][] wavData)
Gets samples of raw data into a pre existing array.
|
double[][] |
getSamplesForMillis(long startMillis,
long durationMillis,
int channelMap)
Get data based on millisecond times.
|
getParentSourceData, notifyModelChanged
addDataAnnotationType, addLocalisationContents, addOfflineDataMap, autoSetDataBlockMixMode, cancelDataOrder, clearAll, clearChannelIterators, clearDeletedList, createProcessAnnotations, createProcessAnnotations, dumpBlockContents, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findUnitsinInterval, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, getChannelMap, getClosestUnitMillis, getClosestUnitMillis, getCurrentViewDataEnd, getCurrentViewDataStart, getDataAnnotationType, getDataGain, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelectCreator, getDataSelector, getDataUnit, getFirstUnit, getFirstUnit, getFirstUnitAfter, getLastUnit, getLastUnit, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationContents, getLogging, getLoggingName, getLongDataName, getMixedDirection, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNextUnit, getNextUnit, getNumDataAnnotationTypes, getNumOfflineDataMaps, getNumRequiredBeforeLoadTime, getOfflineData, getOfflineDataMap, getOfflineDataMap, getOrderStatus, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPrevDataEnd, getPrimaryDataMap, getProcessAnnotations, getQuickId, getRawSourceDataBlock, getRawSourceDataBlock2, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getReverseChannelIterator, getSampleRate, getSaveRequirements, getShouldBinary, getShouldLog, getSourceDataBlock, getSourceProcess, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, isCanClipGenerate, isClearAtStart, isLinkGpsData, isRecycling, loadViewerData, masterClockUpdate, noteNewSettings, orderOfflineData, orderOfflineData, remove, remove, removeOfflineDataMap, reset, saveViewerData, setBinaryDataSource, setCanClipGenerate, setChannelMap, setClearAtStart, setDatagramProvider, setDataName, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNaturalLifetime, setNaturalLifetimeMillis, setRecordingTrigger, setRecycling, setRecyclingStoreLength, setSampleRate, setShouldBinary, setShouldLog, shouldNotify, sortData, toString, updatePamData
canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getLongestObserver, getPamObservers, getRequiredHistory, hasOptionsDialog, notifyObservers, notifyObservers, setChanged, setOverlayDraw, showOptions, waitForThreadedObservers
public PamRawDataBlock(java.lang.String name, PamProcess parentProcess, int channelMap, float sampleRate)
public void addPamData(RawDataUnit pamDataUnit)
PamDataBlock
addPamData
in class PamDataBlock<RawDataUnit>
pamDataUnit
- Reference to a PamDataUnitpublic double[][] getSamplesForMillis(long startMillis, long durationMillis, int channelMap) throws RawDataUnavailableException
startMillis
- durationMillis
- channelMap
- RawDataUnavailableException
public double[][] getSamples(long startSample, int duration, int channelMap) throws RawDataUnavailableException
startSample
- duration
- channelMap
- RawDataUnavailableException
public double[][] getSamples(long startSample, int duration, int channelMap, double[][] wavData)
startSample
- duration
- channelMap
- wavData
- public ChannelListManager getChannelListManager()
getChannelListManager
in class AcousticDataBlock<RawDataUnit>
public void addObserver(PamObserver o)
PamObservable
addObserver
in class PamDataBlock<RawDataUnit>
o
- Reference to the observerpublic void addObserver(PamObserver o, boolean reThread)
addObserver
in class PamDataBlock<RawDataUnit>