Figure 2.4 KnowledgeWorks Objects Browser
The Objects Browser is for exploring the contents of the KnowledgeWorks object base. Start it by choosing
. The system knows about the CLOS objects that make up the object base. One class of CLOS objects in this example is the
class so choose
drop-down. All the node objects in the object base will be displayed in the pane below. Click on one of these objects and the bottom pane will display the slots and slot values of the object.
To make the display clearer and allow input without explicit package qualifiers, change the package of the Objects Browser. Do this via
Works > Tools > Preferences... > Objects Browser > Package
. Edit the Package pane so that it says
Now change the
field to read
(node ?object animal ?a)
. The animals associated with each node are displayed. In this game there is a tree of questions with each node object representing a question. Some nodes have a
value for the animal slot; these are the non-terminal nodes in the question tree. The program learns your new animals by adding new nodes to the tree.
field (and press
). This displays only the animals. The values displayed in the topmost of the two panes is the
field instantiated with every possible object that matches the
field. However, if the
field is empty then the value of the
field is taken to be the pattern.
field to read
(and (node ?n animal ?a) (test ?a))
Figure 2.5 Objects Browser matching animals
Only the non-nil animals are displayed.