Hi again,
Now my rules get activated, but I have this error:
"Async Error: Jess reported an error in routine call
while executing (call ?c esPermitida ?pos)
while executing (and (call ?c esPermitida ?pos) (call ?c estaEnFrente
?pos-coche))
while executing rule LHS (Node2)
while executing rule LHS (TEQ)
while executing rule LHS (TEQ)
while executing rule LHS (TECT).
Message: No method named 'esPermitida' found in class jess.Fact."
And "esPermitida" and "estaEnFrente" are public boolean defined functions
with one argument.
Is there any problem with my declarations?
Are there any restrictions in JESS calling Java methods?
Here are the Java declarations:
"public boolean esPermitida (Posicion pos) {
if (getPosicionesPermitidas().contains(pos.descripcion()))
return true;
else
return false;
}"
"public boolean estaEnfrente(Posicion pos) {
if ...
return true;
...
return false;
}"
Please, could anybody help me?
Cherman
_________________________________________________________________
Con MSN Hotmail s�mese al servicio de correo electr�nico m�s grande del
mundo. http://www.hotmail.com/ES
--------------------------------------------------------------------
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]
--------------------------------------------------------------------