(mapclass) (slot-get) (slot-set) as Hal Hildebrand mentioned are functions from JessTab, sorry i wasn't clear in the last post. As part of the project's requirement, i have to to do things this way. since my classes are defined in protege itself and not done with (defclass) the mapping resulted in all slots treated as multislots type. Is there any way to overcome this problem?
>The checks resulting from the LHS are exercised each time "object" facts >are asserted or modified. The *firing* of this rule with its simple RHS >isn't the expensive part. So there will be considerable time taken for LHS checks? cause i was under the impression that the rule fires automatically once pattern matches and there was no checking involved actually. >Since you write that X-coordinates are INTEGER, a comparison using >(:X-coordinate ?x2&~?x1) might be a little faster. (But isn't either >x-coordinate differs *or* y-coordinate differs sufficient to warrant the >change of :Behaviour? As it stands now, *both* must differ.) -Wolfgang X X X O X A X O X X X O to make things clearer, what i want is only agents in the X region should trigger the rule with another at A. agents at the O region should not since they are not 1 grid next to agent at A. as such, either x-coordinate differs *or* y-coordinate differs isn't really correct and ?x2&:(>= 1 (abs (- ?x2 ?x1))) covers +1, -1, and 0 which means equal, no? so my rule is for (?x1 differs ?x2 by 1 or equal) AND (?y1 differs ?y2 by 1 or equal) for a total of 9 combinations. perhaps this complexity is causing the slow down? -vel >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 > > > > -------------------------------------------------------------------- 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] -------------------------------------------------------------------- -- View this message in context: http://www.nabble.com/Jess-JessTab-protege-tf4413854.html#a12648401 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] --------------------------------------------------------------------
