JESS: addSlot without any default value
Santiago Almirón <[email protected]>
| Newsgroups | gmane.comp.java.jess |
|---|---|
| Message-ID | <32415_1286068102_o9318LjZ000499_BAY155-w2471F0D79FA4C8D07342B4A76A0@phx.gbl> |
Hello,
First, excuse me for my English. My native languaje is Spanish.
I am writing to you because I have a little problem with Jess's API, especially with addSlot from Class Deftemplate. I do not know how I add a new slot without any default value. The main problem is with FLOAT and INTEGER types. Because, some Facts which I work do not have this slot instanced. If a give a default value, some rules will be fired . I usually add SYMBOL slots in this way:
addSlot("Name", Funcall.NIL, "SYMBOL");
And then, when I assert a new Fact, a (Name nil) appears if I do not give any value. SYMBOL type is not a problem, but FLOAT and INTEGER types is a problem for me.
I appreciate your time. Thanks in advance.
Best regards
Santiago
--------------------------------------------------------------------
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].
--------------------------------------------------------------------