|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SamplesSink
This interface represents a sink for sample values, and only defines three methods: to add new samples, to react to a segment becoming "active" (by some definition) and to react to a segment becoming "inactive".
| Method Summary | |
|---|---|
void |
addSample(double sample,
int index)
Adds a new sample to the sink. |
void |
segmentEnd(int index)
Should be called when it is detected that an active segment end, i.e. |
void |
segmentStart(int index)
Should be called when it is detected that an active segment starts, i.e. |
| Method Detail |
|---|
void addSample(double sample,
int index)
sample - The new sample value to add.index - The index of this sample. All samples are required
to be equally spaced.void segmentStart(int index)
index - The index at which the active segment starts.void segmentEnd(int index)
index - The index at which the active segment ends.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||