Question: Explain the following code [ 6 marks ] ( deftemplate emergency ( slot type ) ( slot location ) ) ( deftemplate fire - squad

Explain the following code [6 marks](deftemplate emergency (slot type)(slot location))(deftemplate fire-squad (slot name)(slot location))(deftemplate evacuated (slot building))(defrule all-fires-being-handled (forall (emergency (type fire)(location ?where))(fire-squad (location ?where))(evacuated (building ?where)))=>(printout t All buildings that are on fire crlf 2have been evacuated and crlf have firefighters on location crlf))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!