Hi everyone, I'm new to Jess and I have some questions 

1) I'm using (mapclass) to map my protege classes into jess, but I found
that the function maps all userdefined slots to be multislots although i
have set them to be required single cardinality and integer type in protege.
ie.  the generated is (multislot :X-coordinate) when what i need is (slot
:X-coordinate (type INTEGER))
The trouble occurs when i need to get the value to Java and it is identified
as a list and I cannot use (slot-get) as only the facts were being modified
during runtime (...slot-set is too costly) 
Though conversion is possible, I'm just wondering if theres a better way to
do it as the conversion seems abit wasteful and costly to my simulation's
execution.

2)I have this rule

(defrule moving_aside
                
        ?node1<-(object (is-a Agent)(:NAME ?n1)(:X-coordinate ?x1)(:Y-coordinate
?y1)(:Behaviour ?b1&~"move_aside"&~"look_for_leader"))
        ?node2<-         (object (is-a Agent)(:NAME ?n2&~?n1)(:X-coordinate 
?x2&:(>= 1
(abs (- ?x2 ?x1))))(:Y-coordinate ?y2&:(>= 1  (abs (- ?y2 ?y1)))))
=>

        (modify ?node1 (:Behaviour "move_aside"))

)

Basically this rule checks for another agent beside it and set its behaviour
to another state if present.
According to my test case, though this rule is never fired, its presence
alone slowed down the simulation with 200 agents.
Is this due to the way i have written my rule such that for each agent,
atleast
(:X-coordinate ?x2&:(>= 1 (abs (- ?x2 ?x1)))) 
had to be checked by jess with another 199 agents? or something else?

welcome any suggestions to optimise, Thank you for your time


-- 
View this message in context: 
http://www.nabble.com/Jess-JessTab-protege-tf4413854.html#a12590660
Sent from the Jess mailing list archive at Nabble.com.

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