public class Threshold extends java.lang.Object implements DataSignal.ProcessorConfig
Modifier and Type | Class and Description |
---|---|
static class |
Threshold.OutputMode
Output modes for the threshold processor
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_HYSTERESIS |
static java.lang.String |
FIELD_LIMIT |
static java.lang.String |
FIELD_MODE |
java.lang.Number |
hysteresis |
java.lang.Number |
limit |
Threshold.OutputMode |
mode |
static java.lang.String |
SCHEME_NAME |
Constructor and Description |
---|
Threshold(java.util.Map<java.lang.String,java.lang.String> query)
Constructs a threshold config object from a URI string
|
Threshold(java.lang.Number limit,
Threshold.OutputMode mode)
Constructs a threshold config object
|
Threshold(java.lang.Number limit,
Threshold.OutputMode mode,
java.lang.Number hysteresis)
Constructs a threshold config object, setting the hysteresis distance
|
public static final java.lang.String SCHEME_NAME
public static final java.lang.String FIELD_LIMIT
public static final java.lang.String FIELD_HYSTERESIS
public static final java.lang.String FIELD_MODE
public final java.lang.Number limit
public final java.lang.Number hysteresis
public final Threshold.OutputMode mode
public Threshold(java.util.Map<java.lang.String,java.lang.String> query)
query
- String-String map containing the fields from the URI stringpublic Threshold(java.lang.Number limit, Threshold.OutputMode mode, java.lang.Number hysteresis)
limit
- Boundary the data must crossmode
- Operation mode for the processorhysteresis
- Minimum distance between the limit and value to signal a successful crossing.
Use with data that may frequently oscillate around the threshold limit.public Threshold(java.lang.Number limit, Threshold.OutputMode mode)
limit
- Boundary the data must crossmode
- Operation mode for the processor