This preview shows page 1. Sign up to view the full content.
Unformatted text preview: (year 1997) (color white)) For a total of 2 facts in module MAIN. Note that the car is white by default. If you don't supply a default value for a slot, and then don't supply a value when a fact is asserted, the special value nil is used. Also note that any number of additional automobiles could also be simultaneously asserted onto the fact list using this template. Note also that we can specify the slots of an unordered fact in any order (hence the name.) Jess rearranges our inputs into a canonical order so that they're always the same. As you can see above, each fact is assigned an integer index (the fact-id ) when it is asserted. You can remove an individual fact from the working memory using the retract function. Jess> (retract 1) TRUE...
View Full Document
This note was uploaded on 03/02/2010 for the course COMP 102 taught by Professor Smith during the Spring '10 term at California State University , Monterey Bay.
- Spring '10