Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] infinite loop

Samson Tu swt at stanford.edu
Mon Mar 19 09:35:14 PDT 2007


VIDYA VENKITESWARAN wrote:
> This is a rule tat i am trying to run in jess integrated with protege
>  
>  
> (defrule  checksize (object (is-a Input-Application) (application-type  
> ?a ))(test (eq ?a "image") ) => 
> (if( slot-get(slot-get(slot-get (slot-get  (slot-get 
> Fipadevice_Instance_24   hw-properties) ui ) screen ) resolution) 
> graphics) then (printout t "File transfer possible" crlf 
> (modify-instance Fipadevice_Instance_20050 (transferability  TRUE)))else 
> (printout t "The file format is not supported" crlf)))
>  
> It runs into an infinite loop
> how do i avoid this??
> Vidya

Check the Jess manual
http://herzberg.ca.sandia.gov/jess/docs/70/rules.html#no-loop

-- 
Samson Tu                    email: swt at stanford.edu
Senior Research Scientist    web: www.stanford.edu/~swt/
Stanford Medical Informatics phone: 1-650-725-3391
Stanford University          fax: 1-650-725-7944




More information about the protege-discussion mailing list