public class DataBlocker extends BaseDataProcessor
DataProcessor
which wraps incoming DoubleData
-objects into equally size blocks of defined
length.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_BLOCK_SIZE_MS
The property for the block size of generated data-blocks in milliseconds.
|
logger
Constructor and Description |
---|
DataBlocker() |
DataBlocker(double blockSizeMs) |
Modifier and Type | Method and Description |
---|---|
double |
getBlockSizeMs() |
Data |
getData()
Returns the processed Data output.
|
void |
newProperties(PropertySheet propertySheet)
This method is called when this configurable component needs to be reconfigured.
|
getPredecessor, initialize, setPredecessor
getName, initLogger, toString
@S4Double(defaultValue=10.0) public static final java.lang.String PROP_BLOCK_SIZE_MS
public DataBlocker()
public DataBlocker(double blockSizeMs)
blockSizeMs
- block size in millisecondspublic void newProperties(PropertySheet propertySheet) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class ConfigurableAdapter
propertySheet
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public double getBlockSizeMs()
public Data getData() throws DataProcessingException
BaseDataProcessor
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processor error occurs