Unformatted text preview: The working memory still thinks our Account's balance is 1.0. There are several ways to notify Jess that the object is changed and working memory needs updating. One is using the update function: Jess> (update ?a) Jess> (facts) f-0 (MAIN::Account (balance 2.0) (class <Java-Object:java.lang.Class>) (OBJECT <Java-Object:Account>)) For a total of 1 facts in module MAIN. update tells Jess to refresh the slot values of the shadow fact linked to the given Java object. The reset function, which resets working memory, updates the slots of all shadow facts in the...
View Full Document
- Spring '10
- Object-Oriented Programming, Windows Update, Jess