To match a slot with the result or a method call, prefix the call with
an equal sign:
(MyShadowFact (OBJECT ?o) (property1 =(MyEnum.xyz)))
On 7/27/07, Krasnigor, Scott L (N-AST) [EMAIL PROTECTED] wrote:
I believe you need to surround the enum with ( ), e.g. (property1
(MyEnum.xyz)). Enums are treated like method calls. The ( ) causes a call to
your enum class to get the associated value for the enum. Hope this works
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Skeptic 2000
Sent: Thursday, July 26, 2007 11:18 PM
Subject: JESS: Java 1.5 enums
As shown on JessWiki, I use the import functions to get my enum class in
then I try to match a slot of a shadow fact to one of the enum field :
(MyShadowFact (OBJECT ?o) (property1 MyEnum.xyz))
What I'm doing wrong ?
Soyez parmi les premiers à essayer Windows Live Mail.
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]