org.openuat.sensors
Interface VectorSamplesSink


public interface VectorSamplesSink

This interface represents a sink for vector sample values, and only defines three methods: to add new sample vectord, to react to a segment becoming "active" (by some definition) and to react to a segment becoming "inactive".

Version:
1.0
Author:
Rene Mayrhofer

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. when it is detected that the source has become quiescent by some definition.
 void segmentStart(int index)
          Should be called when it is detected that an active segment starts, i.e. when it is detected that the source has become active by some definition.
 

Method Detail

addSample

void addSample(double[] sample,
               int index)
Adds a new sample to the sink.

Parameters:
sample - The new sample vector to add.
index - The index of this sample. All samples are required to be equally spaced.

segmentStart

void segmentStart(int index)
Should be called when it is detected that an active segment starts, i.e. when it is detected that the source has become active by some definition.

Parameters:
index - The index at which the active segment starts.

segmentEnd

void segmentEnd(int index)
Should be called when it is detected that an active segment end, i.e. when it is detected that the source has become quiescent by some definition.

Parameters:
index - The index at which the active segment ends.


2005-2009, Rene Mayrhofer.