Thanks.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jason Morris
Sent: Thursday, January 19, 2006 4:32 PM
To: jess-users@sandia.gov
Subject: Re: JESS: Naming facts
On 1/19/06, Donnelly <[EMAIL PROTECTED]> wrote:
> Given a list of device name
You could also try something like the following:
WARNING: not real code...
file: DeviceMonitor.jess
(import com.yourpackage.Device)
(defclass Device com.yourpackage.Device)
(defrule shutdown-out-of-limit-devices
(Device (outOfLimit TRUE) (id ?deviceId) (OBJECT ?obj))
=>
(printout t "Devi
On 1/19/06, Donnelly <[EMAIL PROTECTED]> wrote:
> Given a list of device names, when a device is out of limits I want to
> assert an appropriately named fact
> devicename-exceeds-limits.
> If I use (assert (sym-cat ?device ?condition)) the fact becomes
> sym-cat devicename -exceeds-limits.
> Ho
Given a list of device names, when a device is out of limits I want to
assert an appropriately named fact
devicename-exceeds-limits.
If I use (assert (sym-cat ?device ?condition)) the fact becomes
sym-cat devicename -exceeds-limits.
How can I create correctly named facts?
Stephen Donnelly
-