Hi all,

i was wondering, if someone could give me an answer on the following 2
questions:
1. is it possible to set up a qualifier on an element of a multivariable in
the LHS of a rule?
    i.e.: imagine iam having a mulitvariable $?example which contains
(astring 0.5 0.8)
    then iam having some rules which shall fire if the second element of the
multivariable is <1
    however, iam not sure how to write such an rule and if it works for an
multivariable. my understanding in the convenience of multivariables so far
was, that i can only test in the         LHS if the list of a multivariable
contains a particular value...

2. Also, iam still not sure if I would be better in using deftemplates
instead of a multivariable.
iam thinking that using a multivariable for my problem is more convenient
when it comes to parse values from java to jess and from jess to java (for
instance not calling fact-slot-value or store/ fetch several times).
however, more unconvenient when it comes to the rules.

Generally:
I would like to pass a vector of three elements from java to jess. this
vector is always built in the way (<informationname>, <valueOfInformation>,
<rangeOfinformation>). i will parse ca. 40 or more vectors like this to
jess.
in jess, i would like to add some logic in the form of, if information XY
has the value of Z then add a new fact in form of (<indication>
<valueOfindication> <scopeOfIndication>).
I tried to implement a small example using deftemplates in jess and parse
each single element of my java-vector with store/fetch to the right slot in
the jess-deftemplate. However, doing this for ca. 40 or more vectors seems
to be a little bit tedious and iam wondering if there isnt a more convenient
way.
Furthermore, the results - the RHS of the rule- should become a vector in
java, too. i know i can pass the deftemplate back to jave using store/ fetch
and the fact-slot-value method (in my case i would have to use this method
three times for each indication-vector slot and each indication vector (ca.
20 or more) - also, i read the contribution about "dynamically storing
result of fired rules in ValueVector". but iam still not sure which way to
go...

Unfortunatly, iam not an expert in java-programming.

Sorry, for this long question - but iam thinkin about a "good" solution
since a couple of days and i am still not sure if i ignored something...

Thanks you very much in advance !

Ina

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to