DiscoveryManager
The Discovery Manager receives heart beats and values from BSN nodes. The Discovery Manager keeps track of BSN nodes, when they arrive, when they disappear, and sends the appropriate event. Whenever a value arrives, it is filtered to see if it has changed and if so, it is sent on as an event.
Part of the Ponder2 Tutorial.
Operation | Description |
create: patientName |
Creates a new instance of the Discovery Manager. There can only be one active Discovery manager running at a time because it listens for BSN events on the RMI port BSNBus. |
Operation | Return | Description |
newPump: anEventType |
self |
Sets the event to be generated when a new Insulin pump is detected |
lostPump: anEventType |
self |
Sets the event to be generated when an Insulin pump is lost |
newBSN: anEventType |
self |
Sets the event to be generated when a new BSN node is detected |
lostBSN: anEventType |
self |
Sets the event to be generated when a BSN node is lost |
bsnValue: anEventType |
self |
Sets the event to be generated when a value is received from a BSN node |
filter: aBoolean |
self |
If aBoolean is true then BSN values are filtered to weed out duplicate values. This can be set using PonderTalk commands e.g. discmngr filter: true. or discmngr filter: false. |