public class SinusWave
extends stream.io.AbstractStream
| Constructor and Description |
|---|
SinusWave() |
| Modifier and Type | Method and Description |
|---|---|
Float |
getAmplitude() |
int |
getBlockSize() |
Double |
getFrequency() |
Integer |
getSampleRate() |
void |
init() |
static void |
main(String[] args) |
stream.Data |
readNext() |
void |
setAmplitude(Float amplitude) |
void |
setBlockSize(int blockSize) |
void |
setFrequency(Double frequency) |
void |
setSampleRate(Integer sampleRate) |
public Float getAmplitude()
public void setAmplitude(Float amplitude)
amplitude - the amplitude to setpublic Double getFrequency()
public void setFrequency(Double frequency)
frequency - the frequency to setpublic Integer getSampleRate()
public void setSampleRate(Integer sampleRate)
sampleRate - the sampleRate to setpublic int getBlockSize()
public void setBlockSize(int blockSize)
blockSize - the blockSize to setpublic void init()
throws Exception
init in interface stream.io.Sourceinit in class stream.io.AbstractStreamExceptionAbstractStream.init()public stream.Data readNext()
throws Exception
readNext in class stream.io.AbstractStreamExceptionAbstractStream.readNext()public static void main(String[] args)
Copyright © 2015. All rights reserved.