public class Pulse extends java.lang.Object implements DataSignal.ProcessorConfig
Modifier and Type | Class and Description |
---|---|
static class |
Pulse.OutputMode
Output modes for the pulse processor
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_MODE |
static java.lang.String |
FIELD_OUTPUT
Deprecated.
Uri field renamed to "mode", use
FIELD_MODE instead |
static java.lang.String |
FIELD_THRESHOLD |
static java.lang.String |
FIELD_WIDTH |
Pulse.OutputMode |
mode |
static java.lang.String |
SCHEME_NAME |
java.lang.Number |
threshold |
short |
width |
Constructor and Description |
---|
Pulse(java.util.Map<java.lang.String,java.lang.String> query)
Constructs a pulse config object from a URI string
|
Pulse(Pulse.OutputMode mode,
java.lang.Number threshold,
short width)
Constructs a pulse config object
|
public static final java.lang.String SCHEME_NAME
public static final java.lang.String FIELD_MODE
public static final java.lang.String FIELD_THRESHOLD
public static final java.lang.String FIELD_WIDTH
@Deprecated public static final java.lang.String FIELD_OUTPUT
FIELD_MODE
insteadpublic final Pulse.OutputMode mode
public final java.lang.Number threshold
public final short width
public Pulse(java.util.Map<java.lang.String,java.lang.String> query)
query
- String-String map containing the fields from the URI stringpublic Pulse(Pulse.OutputMode mode, java.lang.Number threshold, short width)
mode
- Output type for this processorthreshold
- Value the sensor data must exceed for a valid pulsewidth
- Number of samples that must be above the threshold for a valid pulse