Download Herbal Tutorial - Applied Cognitive Science Lab

Transcript
A Gentle Introduction to Herbal
20
4. Repeatedly click on the Step button and watch Sally survive by eating and drinking. The
output you see in the Soar Debugger should resemble Table 2. Don’t worry if you are
getting different output because in the next section you will learn how to debug your model
in Soar.
Table 2. Watching Sally Eat and Drink in the Soar Debugger.
Line
1
2
3
4
5
6
7
8
9
Soar Trace
1: O: O1 (|initialize-Survive|)
2: O: O2 (eat)
Chomp, chomp....
3: O: O3 (drink)
Slurp, slurp....
4: O: O4 (eat)
Chomp, chomp....
5: O: O5 (drink)
Slurp, slurp....
4.13.2.
Executing Sally in Jess
To run Sally in Jess, follow these steps:
1. Open a console window and navigate to the output subfolder of the HungryThirsty project.
If you are not sure where your project is located on your disk, right-click (ctrl-click for the
Mac) on the HungryThirsty project listed in the Eclipse Navigator View and choose the
properties menu item.
2. Launch the Jess Shell from this console window (consult the Jess documentation if you
unsure how to start the Jess Shell).
3. Type (reset)
4. Type (watch focus)
5. Type (watch rules)
6. Type (batch Sally.jess)
7. Type (run 10) and watch Sally survive by eating and drinking. The output you see in the
Jess Shell should resemble Table 3. Don’t worry if you are getting different output because
the next section you will learn how to debug your model in Jess.