When mapping javabean objects as "static" definstances to JESS, is it
possible to update only a single given property value instead of the
whole bean state?
thanks,
Lakshmi
To unsubscribe, send the words 'unsubscribe jess-
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>Are there any higher math functions provided by Jess.
In recent versions of Jess 7, all the static functions in java.Math
are automatically available:
Jess> (Math.cos 2.0)
-0.4161468365471424
In Jess 6, you would have to say
Jess>
I think Florian Fischer wrote:
> I just wondered if there is a more elegant way to deal with dates.
Jess currently doesn't treat Date objects specially in any way. You
could define a few deffunctions which compared dates, and then use
those on your rule LHS (or a few Java Userfunctions.)
--
I think Florian Fischer wrote:
>
> But my objects have much more attributes than I need in the rules. I
> would like to limit which attribute is visible to JESS. I can do that
> to some extent by defining getters of the form getSomething(int dummy)
> where the parameter is never used but prev
Hello,
Are there any higher math functions provided by
Jess. I wasn't able to find anything by exploring
Jess or by looking through the book. Is this only
possible by calling out to Java directly?
Thanks,
Bret
__
Do You Yahoo!?
Tired of spam?
Not to dodge the answer, but I do milliseconds in all my date work. I guess
in my mind I just didn't mind have a 'bean' object that did the work for me
to allow my rules to be ignorant of what the value field type was that was
being compared (until RHS 'pretty printing' of course)
Roger
On 2/2/
Hello,
I am working on a project integrating JESS. All data is stored in Java
objects. All objects of a class used in the rules are definstance'd
into JESS and fire propertyChanges as needed.
But my objects have much more attributes than I need in the rules. I
would like to limit which at
Hello,
Is there a convenient way to express rules on Java Date attributes in
shadow facts? Or is it advisable to convert all dates to integers (i.e.
add a getter that returns the same date in milliseconds or seconds)?
More specifically, I want to fire a rule under some conditions, one of
t
Hello everybody,
I am making an agent based model with RePast and Jess and I am a bit
stuck with the following (maybe for just trivial) problem.
I have 12 facts defined with
(deftemplate stored (slot householdID) (slot amount) (slot age))
--> householdIDis the id of the household
--> amount
I'd call that a bug, yes. Thanks.
I think Yura wrote:
> Don't know whether it's a bug but after
>
> (deffunction fun () (assert (b 2)))
> (defrule rule (logical (a))=>(assert (b 1)))
> (defrule rule2 (logical (a))=>(fun))
> (assert (a))
> (run)
>
> (retract 0) deletes only (a) and (b 1). (b 2)
Hi jess-users
Don't know whether it's a bug but after
(deffunction fun () (assert (b 2)))
(defrule rule (logical (a))=>(assert (b 1)))
(defrule rule2 (logical (a))=>(fun))
(assert (a))
(run)
(retract 0) deletes only (a) and (b 1). (b 2) doesn't seem to have a logical
dependency on (a).
Yuri
--
11 matches
Mail list logo