public class Equation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Equation.EquationOperation
The enumerations for Equation operations.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
destination |
java.lang.String |
equation
The destination of the Equation (tag)
|
Constructor and Description |
---|
Equation(java.lang.String dest,
java.lang.String equation)
The constructor for creating a new Equation
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(java.util.HashMap<java.lang.String,Sensor> map)
This method will evaluate the equation with the map information it is provided with.
|
public java.lang.String destination
public java.lang.String equation
public Equation(java.lang.String dest, java.lang.String equation)
dest
- The destination (as a tag) that you would like to store the evaluated result into the DB with.equation
- The equation to be evaluated by the device during runtime.public java.lang.Double evaluate(java.util.HashMap<java.lang.String,Sensor> map)
map
- A map containing Strings (tags) as it's keys and Sensors as it's values.