I think Andreas Andreakis wrote:
> But, when I ran it with both rules it takes more then 3 secs. I
> understand why this happens (pattern mathing problem), but I dont
> understand why I face the same problem while using Modules. The docs
> say, that rules contained in a Module do not consider i
I think Andreas Andreakis wrote:
>
> I defined the following Fact:
>
> (deftemplate triple
> (slot subject)
> (slot property)
> (slot object))
>
Yuk. This is like deciding that an entire Java application is going to
use only this class:
class Triple {
public String subject;
pub
I think Lakshmi Vempati wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I am trying to use defadvice (before reset and after clear) and I
> noticed the following problem:
>
> If reset (or clear) is invoked via a a programmatic call to the reset
> (or clear) method defined in the
I think Bogdan Werth wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>
>
> Hello Jess-list,
> I wonder if it is possible to delete old rules/facts in a
> while-loop if they all contain the same ID in either
> rule-name or fact-name.
I think Matthew Hutchinson wrote:
> g'day everyone,
>
> when it comes to sotrage of rules and facts, how are most people handling
> it? Are you using JessML? Also, has anyone been storing the JessML in a
> database?
I don't think too many projects are using JessML yet, although I
expect that many
Hi Roger,
The argument to batch() is a file path or a resource path; it's not a
URL. If the jar is on the CLASSPATH (i.e., is accessible to the
context class loader, the application loader, or the bootstrap loader)
then just batch("jess/" + filename) should find it; Jess itself uses
getResource()
I think Eric W. Bonnett wrote:
> Hmm, I don't think so. Copy\paste! :) I should have mentioned it
> before, I'm using the publicly available version 6.1p4 that I downloaded
> based on instructions in the book.
On the off chance that there was something about this version, I tried
it myself -
I think Eric W. Bonnett wrote:
[Charset iso-8859-2 unsupported, filtering to ASCII...]
> Thanks, but that only matches on the single set of facts with
> the lowest priority.
No, actually, it'll do just exactly what you want. Maybe you typed it wrong?
--
I think Robert Kildare wrote:
>
> Are there any simple issues that I may have overlooked, like the need for
> escape characters to describe the file path when calling
> v = engine.executeCommand("(batch " + inputFileName + ")");
It's always best to quote filenames in Jess 6, and if you're usi
I think Lakshmi Vempati wrote:
>
> Is there a possiblity that in future it would be possible to update the
> fact alone passing in the new value without using modify?
>
I can see adding an overloaded updateObject() method that took a
property name and just updated one property -- but that would
I think Bogdan Werth wrote:
>
> what I want is somehow to call all the facts from the template above and
> substract the amount in ?amount2eat from the slot amount.
You just write a single rule that matches one fact that needs
changing, plus any other facts that supply needed data, and do the
I think Lakshmi Vempati wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>
> 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?
You emailed me a more detailed version of
I think Florian Fischer wrote:
>
> Actually, in my program, ?a and ?c come from shadow facts and the
> variables are bound to variables declared long in the underlying Java
> object. They are the arrival time and current time in milliseconds.
> Anyway, being declared long, I would expect the
I think erich.oliphant wrote:
> Hi,
> I've upgraded to 7 beta 5 ( the new features and plugins as well as the
> library reference in my project).
Well, not exactly an upgrade; you're using a newer trial version.
> I am trying to run a .clp file in eclipse and I'm getting the
> following Exceptio
[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
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)
I think erich.oliphant wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
> I am trying to figure out the best way to have a rule fire only for a fact
> whose slot value is the min or max of a group of facts.
Match a negated pattern to the (nonexistent) fact in which some
number
I think =?iso-8859-1?Q?H=FCbner?= wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello everybody,
>
> I need a hint from you. When I try to retract a fact, all other facts are
> reactivated.
...
> Can somebody tell me what's wrong with the code?
You've got a bunch of rules with
I think Daniela CLARO wrote:
> MAIN::installer-barreaux-metallique: =1=1=1=1+t
> MAIN::installer-barreaux-metallique&1: =1=1=1=1+t
>
> What actually this means for Jess?
Internally, Jess breaks rules containing the "or" conditional element
into multiple rules. In general, you shouldn't worry ab
I think sheila marie villarba wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> just asking how to integrate a Jess code to the GUI if the Jess code is
> using defmodule. how?
defmodules should not affect how you work with GUIs from Jess at
all. Is there a specific problem you're
I think Vageesh Setty wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Website seems to be down for a while.. is
> http://herzberg.ca.sandia.gov/jess/docs/70/programming.html right URL?
>
It's OK now. Thanks.
-
Ernest Fr
I think Hector Urroz wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Thanks for the response. It does seem a bit odd to automatically and
> silently modify code. Why not throw an exception? Is this done elsewhere in
> Jess? What is the rationale? Did I stumble onto a "reserved" rul
I think Krasnigor, Scott L (N-AST) wrote:
> I performed a bsave from an engine that contains only shadow facts (and
> some simple rules). If I do a bload with that file into a new engine,
> are the facts that are loaded via the bload command remain shadow facts?
> Or do I need to re-definstance the
I think erich.oliphant wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> (if (eq ?effRate nil) then
> ;;(dts-log-error "No effective rate found for " (call
> com.ngc.dts.util.DateUtils formatDateTime ?pddate))
> return )
That "return" is just the symbol "return",
I think Hector Urroz wrote:
>
> Jess> (ppdefrule MAIN::clear-need-answer)
> "(defrule MAIN::clear-need-answer
>\"Clear need-answer if question has been answered\"
>?r <- (MAIN::need-answer (ident ?id))
>(not (MAIN::answer (ident ?id)))
>(MAIN::answer (ident ?id))
>=>
>(prin
I think Emmanuel Shyllon wrote:
> Hi,
>
>
>
> Given the following:
>
>
>
>
>
> Rete engine = new Rete ();
> Deftemplate d =
> new Deftemplate("Aus-Address", "A Aus-Address",
> engine);
> d.addSlot("state-territ-name
Several people have reported that there was a problem with the
distribution file for the trial version (only) of Jess 7.0b5. The
symptom is basically that the JessDE just doesn't work. The licensed
download is unaffected. I've corrected the problem and posted a new
binary. If you've been having tr
I think Giovanni Crudele wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
Note that Jess 7 is beta softwatre, meaning it's undergoing a
shakedown for bugs. Before reporting problems, please make sure you're
running the latest version of the beta (7.0b5 at the time of this
writing.) P
Planning is one of the earliest and most fundamental applications of
rule-based systems, and decades of research have been done on it.
The "Monkey and Banana" example that ships with Jess is a simple
planning example. In the initial state, there's a monkey, some
bananas, and a bunch of objects. T
I think Krasnigor, Scott L (N-AST) wrote:
> Sorry for being dense. I can see using transactions. However, I don't
> quite understand how the working memory would be updated with one
> update. The pcs.firePropertyChange() fires for each data member change
> when their set method is called. How would
I think Yura wrote:
[Charset koi8-r unsupported, filtering to ASCII...]
> > (set-salience-evaluation every-cycle)
>
> I think that would be really slow.
Only if the agenda is large, but yes, it could slow things down.
> However the problem is quite common, so probably we may use some
> Java API
I think Jonathan Sewall wrote:
>
> 2. I'd ask that jess.Activation.setInactive(boolean) be made public. We
> currently use selective firing of Activation instances from the agenda.
> For that I employ Rete.run(1) to fire one Activation at a time and
> Activation.setInactive() to deactivate tho
I think Krasnigor, Scott L (N-AST) wrote:
> I have a JavaBean that is represented in working memory. Each update to
> the Bean object usually updates 9 of the 12 slots for that object.
> Watching the facts, shows that for each update to the Bean object
> (outside of Jess), I see the fact updated fo
I think Giovanni Crudele wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
>
> I wrote this function in order to track which rule
> fired during the execution. I also add a counter in
> order to know the order of firing. I save this
> information in a template rule-fired and I a
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote:
>
> I want to change the salience of a rule during process.
>
> e.g.
>
> (defrule number1
> (salience 0)
>
You could use a function call or defglobal to return the salience,
then use (set-salience-evaluation) to tell
I think erich.oliphant wrote:
> I need to make sure that ?objVal is not nill before proceeding further. I
> don't see any functions that might help me here. (if (eq ..)) doesn't work
> since it's going to try to call Object.equals().
Actually, "eq" works fine.
I think =?iso-8859-1?B?SmVhbi1GcmFu529pcyBMZWJlYXU=?= wrote:
>
> I'm a new JESS user, I'm trying to install the eclipse plug-in of Jess70b5
> into Eclipse 3.1.1 and it doesn't seem to work. (Nothing new after I extract
> the files and I run eclipse again).
>
> Is there a version issue here ?
I
I think mauricio rincon wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi...
> I wonder if is there any kind of constraint in free jess61p8 version
> about the time it can work during an execution. I've wrote a java program
> that uses jess, and after 2 or 3 hours of being working
I think Daniela CLARO wrote:
> Hi everybody,
> I am doing a plan using Jess...actually somebody asked me what is the
> algorithm to planner that I am using, and I told him that was Jess...but he
> told me that Jess was an expert system, not an algorithm...
>
> So I am confused right now, what is
I think [EMAIL PROTECTED] wrote:
>
> I think you meant:
>
> http://www.jessrules.com/jess/download.shtml
Heh. Just wanted to see if you were paying attention...
-
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 29
Folks,
I'm happy to announce that the newest release of Jess, the Rule Engine for
the Java Platform, is available for immediate download at
http://www.javarules.com/download.shtml
Jess 7.0b5 is (probably) the penultimate release before Jess 7.0. As
such, this release is all about enhancements an
I think [EMAIL PROTECTED] wrote:
> Is it possible for this rule to file and have the ?owner variable change
> between when the rule activates, then fires such that the ?owner variable
> will be bound to null/nil?
>
> This appears to be the case in our system (Jess 6.x) and I am getting an
> e
I think erich.oliphant wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>
> (defrule assert-a-temp
>=>
>(bind ?objRef (get-a-ref-to-java-class))
>(assert (temp (x "val") (y ?objRef
>
> When I have (watch all) on, I see something like:
> ==> f-2 (MAIN::temp (x "val")
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote:
>
> I_d like to link some buttons of my GUI so that some data like *.jpg or
> *.pdf gets opened when I push the button.
> Can somebody tell me how to do this??
You have to decide what you're going to do (launch a Web browser?
Launc
I think ROSSEL, Olivier (CIMPA) wrote:
> But such a syntax seems to fail:
>
> defrule doStuff ""
> ?o <- (object (is-a FOO) (name ?name&~nil))
> (not (foo (bar (?name trim
...
> Any comment?
In Jess, just as in all computer languages, you have to use the proper
syntax. An unadorned funct
I think ROSSEL, Olivier (CIMPA) wrote:
> I am using Jess with Protege. I want to write a rule that says: run
> when you get an oject FOO with a non-empty slot called 'name' and
> where there is no fact foo with property bar equal to the slot
> value. I would intuitively wirte that this way:
(d
I think Bret Kellihan wrote:
>
> Also, Is there anyway to build up an entire jess
> expression into a variable and then execute it? I've
> tried something on the lines of:
>
> (bind ?command (str-cat "(bind ?x 1)"))
> (?command)
The "eval" function parses and evaluates a String (or a variable
I think Henrik Eriksson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi Dona,
>
> I am not sure I understand your problem precisely. Perhaps you could use
> the function "set-current-module" instead of "focus" to set the module
> before calling mapclass.
>
> On Wed, 14 Dec 200
I think Matthew Hutchinson wrote:
>
> Just a conceptual question... since starting with Jess, it always seemed to
> me generally you have the rules established first, then load in facts which
> in turn trigger these rules. No problems there. But is it "proper" to
> consider having the facts alread
I think Dona Mommsen wrote:
> On MacOS X, Eclipse will crash with error:
>
> > Can't start the AWT because Java was started on the first thread. Make
> > sure StartOnFirstThread is
> > not specified in your application's Info.plist or on the command line
>
Yes, I can reproduce this on my Powe
I think [EMAIL PROTECTED] wrote:
> Am I wrong to say that the 'misfeature' mentioned below hasn't made it
> into a feature yet in the latest release 7.0 b4?
> Is there any plan to still add it in time for 7.0 final?
>
> I've written defadvice for every numeric Jess-function (+, -, *, /, <, <=,
I think Hariprasath Manivannan wrote:
>
> - Has anyone faced this issue with Jess5.0? If so please send the possible
> solutions.
Jess 5.0 is unsupported. The last release of any version of Jess 5 was
5.2 in June, 2000; that's over five years ago. Jess has evolved
considerably since then, and ma
I think Yura wrote:
[Charset koi8-r unsupported, filtering to ASCII...]
> Hi jess-users
>
> JessDE doesn't parse this rule (saying: 'TRUE' is a symbol, not an integer):
>
> (defrule rule (declare (salience (+ 1 1))) => )
>
> whereas Jesp makes no complaints.
Yep. I can reproduce this and now th
Hi,
In Jess 7.0b3, the default for definstance type changed from "dynamic"
to "auto". If you specified "dynamic" as the last argument to
definstance, then Jess would try to register itself with your Bean as
a PropertyChangeListener; this used to be the default, so that you had
to write "static" if
I think Dona Mommsen wrote:
> Now it would be nice if JessDE would recognize the JessTab functions,
> so that I could get rid of all the warnings about undefined functions.
> I added the JessTab14.jar to the project, yet JessDE does not recognize
> that there are Jess functions in the jar.
Addi
I think Yura wrote:
> I'm sorry - it's there in the manual. I should be more attentive.
By my calculation, you've reported 4 bugs, and 3 of them were real --
so you're batting .750 . Seems like an excellent average to me!
-
Ernest Friedman
I think Yura wrote:
> (defrule rule (declare ) =>)
>
> When I type "(" inside "(declare)" I receive auto-loop,
> no-focus,node-index-hash and salience. After manually inserting
> "slot-specific" I receive error. I'm using Jess70b4, my Eclipse is 3.1.1.
Ah. OK. That's because slot-specific applies
Jess's "apply" differs from the classic Lisp "apply" in that the
varargs are in the "apply" funcall, rather than being bundled up in a
list. This is by accident rather than by design, I'm afraid. In
classic Lisp, this form
(apply str-cat "foo" " bar" " baz")
is an error, but in Jess, it's correct
An example, please? I just tried it myself and (as I expected) not
only does it not flag them as an error, it auto-completes them.
I think Yura wrote:
> JessDE doesn't accept "slot-specific" declarations.
>
-
Ernest Friedman-Hill
Advanc
All pattern-matching has to be driven by *some* change to working
memory. A few CEs (not, test, accumulate) can pass when they match no
facts at all. Therefore, these CEs need a little help to know when to
fire. If any of them appear first on the LHS of a rule, Jess inserts a
pattern "(initial-fact
I think erich.oliphant wrote:
> I tried that function, but it doesn't seem to exist on the
> jess.ReflectFunctions class (I am using 7.0 beta 4. There seems to be a a
> "static Value a(Class, Object) throws JessException" method based on browsing
> the class file. Could this be it?
You're not u
I think Roger Studner wrote:
> Has anyone has success in industry with a pattern or methodology for
> tracking which rules fires and for what facts through a set of rules?
Not sure what you mean by a pattern or methodology, but...
> I have thought of listeners on firings
That's all you have to
I think erich.oliphant wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hmm, ok thanks, I understand better now. However, jess.Userfunctions return
> Value's so is there anything I can do in that case to activate the type
> conversion? I tried Value.resolve() but that did not help
If you can a Java function from Jess, and that function returns a
java.lang.Boolean, then Jess will turn it into a Jess boolean value
(the symbols TRUE or FALSE, of type RU.SYMBOL).
On the other hand, new Value(Boolean.TRUE) will give you a Value of
type RU.JAVA_OBJECT that contains a java.lang.Bo
Mixed-language debugging would be brilliant, but unfortunately Eclipse
doesn't support it right now. They are talking about it for future
releases. It would surely require a total redesign of the existing
Jess debugger, but it would be worth it.
Maybe you can factor the Java setup code so that you
Most likely the problem is that some of your classes (perhaps
com.ngc.dts.domain.common.PerDiemEntitlement) have mutable hash codes,
making them unsuitable for use as keys in a hash table (try using one
of these objects as a key in a HashMap, change the values of some
properties, then try to look
Jess's simple I/O router system is a copy of the one in CLIPS. It's
sufficient for some situations, but not for others. This is really not
at all a serious problem because for those other situations there are
at least two choices: write some code in Java and call it from Jess,
or write the code in
You can use
(undefinstance *)
to remove all definstances. There is currently no undeffacts function
but one is slated to be added for Jess 7.
I think Subrahmanyam wrote:
> HI All
>
> Is there a flag which can be set so that (reset) command removes all the
> general stuff it removes and does
I think Yura wrote:
[Charset koi8-r unsupported, filtering to ASCII...]
> Hi jess-users
>
> Is this ok that jess.Multimap doesn't implement Serializable? It throws
> java.io.NotSerializableException on issuing 'bsave'.
>
That's a bug. Thanks.
---
I think Yura wrote:
>
> I'm receiving the "Editor couldn't be initialized" when trying to open
> clp-files in Jess70b4-editor (yes, I tried the -clean switch). Jess70b3
> works well. Can anybody help?
JessDE 7.0b4 now requires Eclipse 3.1 -- the sudden changeover with
this particular version wasn
I think Roger Studner wrote:
>
> Is there (I read something 'akin' to this in the mailing archive) a big
> performance hit as well?
>
> I like to use beans/shadow facts for a variety of reasons, but have always
> been under the impression that when i'm going to assert a 'huge' number of a
> partic
I think Scott Moss wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> It would be useful to me to extend this discussion a little--
> specifically to the memory requirements of facts and shadow facts. Is
> there any way of know whether a shadow fact relating to a Java object
> wit
I think Jeffrey Davine wrote:
> Perhaps the place to ask this question is the Constantine Planning Wiki -
> but would it be difficult in the next version of Jess to implement a
> hierarchical template structure?
...
> (deftemplate Individual extends LegalAgent
OK, let's get in the time machine...
There's no tutorial guide or anything like that. The basic procedure
is very easy: implement the "jess.Strategy" interface, then use
(set-strategy ) to load it into Jess. There's really just
the one compare() method to write; it's supposed to implement the
"spaceship operator" (ie., comparison that
I think Kristina Marasovic wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
>
> can someone tell me if it is possible (and how) to get or to measure the
> size of an activation record.
You don't really know the size of *any* Java object, as the details of
object representatio
I think Roger Studner wrote:
> v = new Value(l, RU.SYMBOL);
...
> v = new Value(i, RU.SYMBOL);
For the record, note that both of these lines will throw exceptions at
runtime. To contstruct an RU.SYMBOL from a numeric type, you have to
convert the value to a String yourself and pass that String to
I think Yura wrote:
[Charset koi8-r unsupported, filtering to ASCII...]
> Hi jess-users
>
> Is there any way to convert Java object to one of the predefined Jess types
> (e.g. I need to convert Object which is actually Integer to RU.INTEGER).
>
Hi Yuri,
The cleanest way is just to use the Java
Jess's usual representation for arrays is a Jess list -- is that what
you're looking for? There isn't a public API built into Jess for
turning an array into a List, but now that you're pointing out the
need, it seems like a good addition. For now, though, your obj2array
function is the best way to
I think Jeffrey Davine wrote:
>
> I'll do the research, but as a general matter, do you think the Jess API
> exposes enough information (particularly concerning the rete tokens) so that
> I could write such a tool?
Alan's more optimistic, but I myself don't think this can really be
done at the le
I think Jeffrey Davine wrote:
> The debugging facility I'm wondering about would also allow single stepping
> thorough rules as they activate with the ability to watch the patterns and
> joins.
>
No. I'd love to have this, but it definitely won't be in
Charlemagne. We're working on a plan for Con
, if you're playing along at home, is
[EMAIL PROTECTED] Jess]$ cvs diff -r 1.5 -r 1.6 jess/Node1MTMF.java
Index: jess/Node1MTMF.java
===
RCS file: /home/ejfried/cvsroot/Jess/jess/Node1MTMF.java,v
retrieving revision 1.5
retrieving r
I think Scott Moss wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I am unable to get the QueryResult returned by runQueryStar() in Java to
> recognise column headings in a Userfunction.
The argument to the getXxx() methods isn't a slot name; it's a
variable name. Remember that
I think Roger Studner wrote:
>
> When I try to modify the fact.. I get an error that 'the fact is not in
> working memory'.
Short answer: before trying to modify the facts you get from a query,
use "getIcon" to resolve them:
(bind ?fact (?fact getIcon))
Better answer: upgrade to Jess 7, and use
I think Roger Studner wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Can someone explain slot-specific to me?
Based on your hints about what your code might look like, I wrote this
rule:
(defrule foo
?cGroup <- (ICD9_COUNTING_GROUP (codes $?codes))
=>
(bind ?theCount (fact
[ Forwarded for Jason Morris -- Moderator ]
I think that Roger Studner wrote:
> > Can someone explain slot-specific to me?
You've stumbled right into what Dr. Friedman-Hill warns about in
section 7.15 in the Jess documentation. You're modifying a slot that
is *not* part of the LHS, so Jess will s
I think Steve Solomon wrote:
> This is a minor complaint. Why can't one use nil to match an empty list?
Short answer: because Jess inherited its basic rule language semantics
from CLIPS, and that's how it works in CLIPS.
> Only the pattern (sprocket ?id) matches (sprocket 2) with no following
> s
I think mauricio rincon wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi...
> I have a problem with OR (v) operator. I_m using this operator in a rule,
> that should be fired only once when both of the conditions happened . The
> problem is that if both events are happening, th
I think =?iso-8859-1?Q?=5BEXTERN=5D_Manuel_Kollmu=DF?= wrote:
> Isn_t it possible to assert a variable as a fact or a variable fact?
> like this:
>
> (bind ?var number1)
> _.
> (assert (?var))
No, the type of the fact must be known when the call to "assert" is
compiled. You can use an extra lev
I think Joseph Grant wrote:
>
> (assert (suffix (value "md", "phd", "jr")))
>
Note that the multislot "value" contains five items: the second and
fourth are the commas! Don't use commas here (or anywhere in Jess.)
>
> (defrule check-suffix
> ?fact1 <- (a ?x)
> ?fact2 <- (suffix)
>
I think [EMAIL PROTECTED] wrote:
>
> (defrule rule1
> (x1 value1 ?cf1)
> (x2 value2 ?cf2)
> (x3 value3 ?cf3)
> =>
> (assert (x3 value3 (min ?cf1 ?cf2 ?cf3)))
Perhaps this rule should retract or modify the existing fact, rather
than asserting a second one, as this does?
I think Matthew Hutchinson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
>
> Actually, I have already got the full version from Craig and it works fine.
> Also, my classpath and eclipse stuff is all set to the full version jar file
> also.
Good, but be that as it may, one c
I think Matthew Hutchinson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> G'day everyone,
>
> This is more of an Eclipse question, however, I only get this error when
> trying to open CLP files. Eclipse with Jess has been working fine for weeks,
> and now suddenly Eclipse complet
I think Locksley Woo, CLSA wrote:
> One of my programs uses beans with derived properties. Thus, it is common in
> this program that multiple slots are modified together.
>
> Also, I would argue for atomic multiple-slot modification for the sake of
> safety.
Thank you for these excellent points
I think Roger Studner wrote:
>
> (deftemplate employee
> (slot salary))
> (deffacts employee-facts
> (employee (salary 1007700))
> (employee (salary 1002347700))
> (employee (salary 107712000))
> )
> (watch all)
> (reset)
>
> (defrule count-highly-paid-employees
> ?c <- (accumulate (bind ?count 0
I think Jon Weygandt wrote:
> Jess,
That's her picture on the cover of "Jess in Action" :)
>(TRANS_STATE ?trans_state & "SI" | "MI" | "EI")
>
> My procedural view would be the pattern is evaluated as:
> (TRANS_STATE (?trans_state & "SI") | "MI" | "EI")
> And if the match for "SI" fails, no
I think Jon Weygandt wrote:
> it looks like modifying a fact sometimes requires the equivalent of:
>
> For each slot modified
> {
> Retract the fact
> Set the slot
> Assert the fact
> }
Yes, more or less. Special versions of "retract" and "assert" can be
used to cut a few corners in
I think Roger Studner wrote:
>
> (defrule count-icd9-codes
>
> ?c <- (accumulate (bind ?count 0) ;; initializer
> (bind ?count (+ ?count 1)) ;; action
> ?count ;; result
> (encounter (code ?c &: (eq ?c 440)))
> )
...
> This (and anything in the accumlat
I think Daniela CLARO wrote:
>
> However I have more two questions, the first one I thought that (reset)
> clear my knowledge base, I mean, my facts, rules, all things and actually it
> doesn't. What is the command I can use to clear my knowledge base?
There's a chapter entitled "The Jess Functi
1 - 100 of 232 matches
Mail list logo