PST: Viewing working memory

Working memory elements can be viewed using the
p element
command. The element can refer to a context slot, for example:
p s1
or to a specific production:
p ht*apply-op*eat. When you print a state, for example,

soar> print s1
(S1 ^desired D1 ^hungry yes ^io I1 ^name ht-state
       ^operator O1 + ^operator O2 + ^operator O2 ^problem-space P1
       ^superstate nil ^thirsty yes ^type state)

you get multiple things out. S1 is the ID of the state, and is unique. Attributes start with an uparrow or carot (^), followed by their value (hence the phrase, attribute/value). Preferences for context objects are shown, such as for operators O1 and O2. Operator O2 is the operator because it also appears as a value for attribute operator without a preference following it.

p -s will print the goal stack.

Click on BACK in your browser to return to where you were before this page.