Re: JESS: Jess planner

2004-07-06 Thread ejfried
I think =?iso-8859-1?Q?D=F3nal_Murtagh?= wrote: > Hi, > > I'm looking for a planner implemented in Jess - preferably one which can > perform Hierarchical Task Network (HTN) planning and is available (free > of charge), but if you know of *any* Jess planner, I'd be grateful if > you'd send me the d

JESS: rule in iteration

2004-07-06 Thread BYALLALA
Hi I have bean A and B I want to write a rule that searches the list of B Beans and finds the best match. How do I write that rule? like A.type = B.type and A.loc= B.loc so on. Is it by writing a rule for single bean and iterating the rule in loop or can we put iteration in rule itself? T

JESS: Java beans

2004-07-06 Thread BYALLALA
(defclass a com.xyz.A ) (defclass b com.xyz.B ) (defrule assign (a ?type) (b ?type) => (printout t "Matched types" crlf) )

JESS: wildcard Search

2004-07-06 Thread Balakrishnan Prasath
hello all,   Is it possible to do a wild card search in Jess. If so how..   Appreciate if someone can this example and reply me back..     (defquery q_wn_hyp    (declare (variables ?word))    (wn_sense (syn_id ?hypid) (word ?o&: (= (str-compare ?o ?word) 0)))    (wn_hyp (hypo_id ?hypid) (hyper_id ?

Re: JESS: rule in iteration

2004-07-06 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > Is it by writing a rule for single bean and iterating the rule in loop or > can we put iteration in rule itself? Neither. You write a rule which matches some combination of Beans, and Jess finds sets of Beans that match that rule, and fires the rule for each

Re: JESS: Java beans

2004-07-06 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > (defclass a com.xyz.A ) > (defclass b com.xyz.B ) > (defrule assign > (a ?type) >(b ?type) Note, again, that this rule will never match instances of the defclasses described above, for reasons previously discussed; and again, that variables names have n

JESS: module name

2004-07-06 Thread abramson
Hi! I get the module name "MAIN::" prefixed to information I get on rete objects, for example getName() on a Fact. What's the best way *not* to get this module name? Thanks, myriam To unsubscribe, send the words 'unsubscrib

JESS: Java bean binding and definstance

2004-07-06 Thread BYALLALA
Hi, I have in rules file (defclass dimmer DimmerSwitchDynamic) I want to create a new instance and bind that to it in java file. I am calling rete.definstance("ds", dimmerObject, false); in clp file I have (printout t "brightness" (call ?ds getBrightness) crlf). But I need to have (bind ?

JESS: Newbie question

2004-07-06 Thread VanVorst, Nathanael (Mission Systems)
I am starting to build an expert system that needs to run off a database. The dataset is quite large (data arriving at the rate of gigs per hour). The approach I am taking to run multiple rule-engines, having each engine look at the data in a different way. Partitioning the data like give us vie

RE: JESS: Java bean binding and definstance

2004-07-06 Thread Alan Moore
Title: RE: JESS: Java bean binding and definstance First, the first argument to rete.definstance() ("ds" in the example below) must match the name you give in the first argument to the (defclass) ("dimmer" in the example below.) Second, in order to bind to an object you have definstanced, you

Re: JESS: Newbie question

2004-07-06 Thread ejfried
I think VanVorst, Nathanael (Mission Systems) wrote: > > First question: does that approach seem make sense or have I given enough details? Makes sense, yes. The Rete algorithm that Jess uses is based on an assumption of a potentially large but slowly-changing working memory; anything you can d

Re: JESS: wildcard Search

2004-07-06 Thread ejfried
I think Balakrishnan Prasath wrote: > hello all, > > Is it possible to do a wild card search in Jess. If so how.. I had to think a bit to figure out what you meant. I'm guessing you want to rewrite the query below so that "?word" can be something like "th*" to match all the words that start with

Re: JESS: module name

2004-07-06 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > Hi! > > I get the module name "MAIN::" prefixed to information I get on rete > objects, for example getName() on a Fact. What's the best way *not* to > get this module name? > Untested: public static String nameWithoutModule(String name) { int start = na