public class DataConverter extends BaseDataProcessor
DoubleData to FloatData and vv (depending on its
configuration). All remaining Datas 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, setPredecessorgetName, initLogger, toStringpublic 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
PropertyExceptionpublic DataConverter()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public Data getData() throws DataProcessingException
BaseDataProcessorgetData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processor error occurs