public class Maths extends java.lang.Object implements DataSignal.ProcessorConfig
Modifier and Type | Class and Description |
---|---|
static class |
Maths.Operation
Supported math operations for the transformer
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_OP |
static java.lang.String |
FIELD_RHS |
static java.lang.String |
FIELD_SIGNED |
Maths.Operation |
mathOp |
java.lang.Number |
rhs |
DataSignal.DataToken |
rhsToken |
static java.lang.String |
SCHEME_NAME |
java.lang.Boolean |
signed |
Constructor and Description |
---|
Maths(java.util.Map<java.lang.String,java.lang.String> query)
Constructs a math config object from a URI string
|
Maths(Maths.Operation op,
DataSignal.DataToken rhs)
Constructs a config object with inferred signed or unsigned operation.
|
Maths(Maths.Operation op,
DataSignal.DataToken rhs,
java.lang.Boolean signed)
Constructs a config object with user explicitly requesting a signed or unsigned operation.
|
Maths(Maths.Operation op,
java.lang.Number rhs)
Constructs a config object with inferred signed or unsigned operation
|
Maths(Maths.Operation op,
java.lang.Number rhs,
java.lang.Boolean signed)
Constructs a config object with user explicitly requesting a signed or unsigned operation
|
public static final java.lang.String SCHEME_NAME
public static final java.lang.String FIELD_OP
public static final java.lang.String FIELD_RHS
public static final java.lang.String FIELD_SIGNED
public final DataSignal.DataToken rhsToken
public final java.lang.Number rhs
public final Maths.Operation mathOp
public final java.lang.Boolean signed
public Maths(java.util.Map<java.lang.String,java.lang.String> query)
query
- String-String map containing the fields from the URI stringpublic Maths(Maths.Operation op, java.lang.Number rhs, java.lang.Boolean signed)
op
- Math operation to carry out on the inputrhs
- Value on the right hand side fo the operationsigned
- True to used signed operation, false for unsignedpublic Maths(Maths.Operation op, DataSignal.DataToken rhs, java.lang.Boolean signed)
op
- Math operation to carry out on the inputrhs
- Token representing the sensor data to be used for the right hand side of the operationsigned
- True to used signed operation, false for unsignedpublic Maths(Maths.Operation op, java.lang.Number rhs)
op
- Math operation to carry out on the inputrhs
- Value on the right hand side fo the operationpublic Maths(Maths.Operation op, DataSignal.DataToken rhs)
op
- Math operation to carry out on the inputrhs
- Token representing the sensor data to be used for the right hand side of the operation