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, setPredecessorgetName, 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
ConfigurablenewProperties in interface ConfigurablenewProperties in class ConfigurableAdapterpropertySheet - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public double getBlockSizeMs()
public Data getData() throws DataProcessingException
BaseDataProcessorgetData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processor error occurs