Unformatted text preview: in this regard, Jess includes the deffacts construct. A deffacts construct is a simply a named list of facts. The facts in all defined deffacts are asserted into the working memory whenever a reset command is issued: Jess> (deffacts my-facts "Some useless facts" (foo bar) (bar foo)) TRUE Jess> (reset) TRUE Jess> (facts) f-0 (MAIN::initial-fact) f-1 (MAIN::foo bar) f-2 (MAIN::bar foo) For a total of 3 facts in module MAIN. 5.6. How Facts are Implemented Every fact, shadow or otherwise, corresponds to a single instance of the jess.Fact class. You can learn more about this class here. Templates are represented by instances of jess.Deftemplate , which you can read about here....
View Full Document
- Spring '10