AProcessor

abstract class AProcessor<D : ADevice, S>(deviceListener: IDeviceListener<D, S>?, spaceListener: ISpaceListener<S>?)

Model implementation parts common to all processors.

When a device is at the limit of detection distance, it is a candidate to flicker between loss and discovery. To avoid that, a device declared lost is temporarily kept in a registry, for being ignored if reappearing with a signal power less than P. If an entry in the registry is definitely not seen for M minutes, it is removed from it.

M is set to 15 minutes and P is set to -80 dBm.

Parameters

D

The model for the kind of device to manage.

S

The model for the kind of space to manage.

Inheritors

Constructors

Link copied to clipboard
protected constructor(deviceListener: IDeviceListener<D, S>?, spaceListener: ISpaceListener<S>?)

Functions

Link copied to clipboard
fun clear()

Clears any cache or persisted data from a previous run.

Link copied to clipboard

Sets filters.