public class TestDataSetSource extends de.gsi.dataset.spi.AbstractDataSet3D<TestDataSetSource>
| Modifier and Type | Class and Description |
|---|---|
static class |
TestDataSetSource.DataInput |
| Modifier and Type | Field and Description |
|---|---|
protected Timer |
audioTimer |
protected int |
circIndex |
protected it.unimi.dsi.fastutil.floats.FloatArrayList |
frame |
protected int |
frameCount |
protected int |
frameSize |
protected it.unimi.dsi.fastutil.floats.FloatArrayList[] |
history |
protected TargetDataLine |
line |
protected de.gsi.dataset.utils.DoubleCircularBuffer |
lineBuffer |
protected boolean |
paused |
protected boolean |
running |
protected int |
samplingRate |
protected MidiWaveformSynthesizer |
synth |
protected TimerTask |
traskAudioIO |
protected TimerTask |
traskDataUpdate |
protected int |
updatePeriod |
protected Timer |
updateTimer |
| Constructor and Description |
|---|
TestDataSetSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
fillTestData() |
double |
get(int dimIndex,
int index) |
protected TimerTask |
getAudioTimerTask() |
int |
getDataCount(int dimIndex) |
protected TimerTask |
getDataUpdateTask() |
int |
getFrameCount() |
int |
getFrameSize() |
TestDataSetSource.DataInput |
getInputSource() |
int |
getSamplingRate() |
int |
getUpdatePeriod() |
double |
getValue(int dimIndex,
double x) |
double |
getZ(int xIndex,
int yIndex) |
boolean |
isOutputMuted() |
static void |
main(String[] args) |
protected void |
openLineIn() |
void |
pause()
pauses play back of the data source via the sound card
|
protected void |
reinitializeData() |
void |
reset() |
void |
setFrameCount(int frameCount) |
void |
setFrameSize(int frameSize) |
void |
setInputSource(TestDataSetSource.DataInput inputSource) |
void |
setOutputMuted(boolean state) |
void |
setSamplingRate(int samplingRate) |
void |
setUpdatePeriod(int updatePeriod) |
void |
start()
starts play back of the data source via the sound card
|
void |
step() |
void |
stop()
stops and resets play back of the data source via the sound card
|
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getStyle, getThis, getWarningList, hashCode, lock, minNeigbourSearchX, recomputeLimits, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, getX, getXIndex, getXValues, getY, getYIndex, getYValuesprotected transient MidiWaveformSynthesizer synth
protected transient TargetDataLine line
protected transient de.gsi.dataset.utils.DoubleCircularBuffer lineBuffer
protected it.unimi.dsi.fastutil.floats.FloatArrayList[] history
protected transient it.unimi.dsi.fastutil.floats.FloatArrayList frame
protected int circIndex
protected int samplingRate
protected int frameSize
protected int frameCount
protected int updatePeriod
protected volatile boolean running
protected volatile boolean paused
protected transient Timer updateTimer
protected transient Timer audioTimer
protected transient TimerTask traskAudioIO
protected transient TimerTask traskDataUpdate
protected void openLineIn()
public void fillTestData()
public double get(int dimIndex,
int index)
public int getDataCount(int dimIndex)
public int getFrameCount()
public int getFrameSize()
public TestDataSetSource.DataInput getInputSource()
public int getSamplingRate()
public int getUpdatePeriod()
public double getValue(int dimIndex,
double x)
public double getZ(int xIndex,
int yIndex)
public boolean isOutputMuted()
public void pause()
public void reset()
public void setFrameCount(int frameCount)
public void setFrameSize(int frameSize)
public void setInputSource(TestDataSetSource.DataInput inputSource)
public void setOutputMuted(boolean state)
public void setSamplingRate(int samplingRate)
public void setUpdatePeriod(int updatePeriod)
public void start()
public void step()
public void stop()
protected TimerTask getAudioTimerTask()
protected TimerTask getDataUpdateTask()
protected void reinitializeData()
public static void main(String[] args) throws InterruptedException
InterruptedExceptionCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.