public class RSSIMonitoringServiceImpl extends RifidiAppService<RSSIReadZoneSubscriber> implements RSSIMonitoringService
readZones
LAZY_START
Constructor and Description |
---|
RSSIMonitoringServiceImpl(java.lang.String group,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
subscribe(RSSIReadZoneSubscriber subscriber,
java.util.HashMap<java.lang.String,ReadZone> readZones,
java.lang.Float windowTime,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Integer countThreshold,
java.lang.Double minAvgRSSIThreshold,
java.lang.Double changeRSSIThreshold,
boolean useRegex)
Subscribe to the RSSIMonitoring service for the given readzones.
|
unsubscribe
compareTo, equals, getGroup, getName, getState, hashCode, initialize, lazyStart, setAppProperties, setBundleContext, setEsperService, start, stop, toString
unsubscribe
public RSSIMonitoringServiceImpl(java.lang.String group, java.lang.String name)
public void subscribe(RSSIReadZoneSubscriber subscriber, java.util.HashMap<java.lang.String,ReadZone> readZones, java.lang.Float windowTime, java.util.concurrent.TimeUnit timeUnit, java.lang.Integer countThreshold, java.lang.Double minAvgRSSIThreshold, java.lang.Double changeRSSIThreshold, boolean useRegex)
RSSIMonitoringService
subscribe
in interface RSSIMonitoringService
subscriber
- The subscriber that will be invoked when tags arrive.readZones
- The readzones that will be monitored. Pass in an empty map if you wish to monitor per reader.windowTime
- The timeout that will be used to determine if a tag has gone to a new zone. Times less than 5s are not recommended.timeUnit
- The unit of time to use with the timeout.countThreshold
- The threshold for number of times a tag must be read before the readzone it has shown up at will be switched. Do not
set this to greater than the windowTime divided by the frequency in seconds that tag reports will show up as configured
by your reader.minAvgRSSIThreshold
- The lowest average RSSI that will have to be seen before the readzone is switched.changeRSSIThreshold
- The threshold for the amount the maximum average RSSI must be greater than the second maximum average RSSI
(by readzone) before the readzone is switched.useRegex
- Are you using regular expressions in the readezones you pass in?