Skip to content
Chris Petersen edited this page Oct 16, 2014 · 4 revisions

Plugin: dse

The DSE plug-in enables the Decision Support Engine functionality. All functions in this file are private and should not be called by an end-user.

Note: This plugin, like all other plugins, will not run if (scheduler-init) and (scheduler-startcase) have not been called.

Requires dse to be listed in the application's PLUGINS file, and scheduler ln_store to be listed in the application's MODULES file.

Examples

Example 1: Create some DSE rules: "Temp Low" with (32C < t1 < 36C) and "Possible Leak" with (tv_insp < 100mL & (tv_insp-tv_exp) > 125mL), and initialize the DSE plugin for use.

(define rules '(
  ("Temp Low"       ((> "t1" 32.0)
                    (< "t1" 36.0)) 1)
  ("Possible Leak"  ((> "tv_insp" 100)
                    (diff> "tv_insp" "tv_exp" 125)) 1)
)
(make-instance mystore "DSE" "dse" (list "Rules" rules))
(scheduler-init)
(scheduler-startcase mystore "test")
Clone this wiki locally