public class DataConverter extends BaseDataProcessor
DoubleData
to FloatData
and vv (depending on its
configuration). All remaining Data
s will pass this processor unchanged.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONVERT_D2F |
static java.lang.String |
CONVERT_F2D |
static java.lang.String |
PROP_CONVERSION_MODE |
logger
Constructor and Description |
---|
DataConverter() |
DataConverter(java.lang.String convMode) |
Modifier and Type | Method and Description |
---|---|
Data |
getData()
Returns the processed Data output.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
getPredecessor, initialize, setPredecessor
getName, initLogger, toString
public static final java.lang.String CONVERT_D2F
public static final java.lang.String CONVERT_F2D
@S4String(defaultValue="d2f", range={"d2f","f2d"}) public static final java.lang.String PROP_CONVERSION_MODE
public DataConverter(java.lang.String convMode) throws PropertyException
PropertyException
public DataConverter()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class ConfigurableAdapter
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public Data getData() throws DataProcessingException
BaseDataProcessor
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processor error occurs