Enabling the PAL Constraints and PAL Queries Tabs

The PAL Constraints Tab and the PAL Queries Tab allow you to create new PAL constraints and queries and run them in an interactive way. 

To make these tabs available in your project:

  1. If you wish to enable the PAL Queries tab, you must first include the pal-query project as part of your knowledge base. See Enabling PAL Queries for a description of how to do this.
  2. Choose Configure from the Project menu.
  3. To enable the PAL Constraints tab, make sure PalConstraintsTab is selected.
  4. To enable the PAL Queries tab, make sure PalQueriesTab is selected.
  5. Click OK.

 

If you have enabled the PAL Queries tab, and you want to be able to attach a query to a class, you will also need to turn the class into a queriable class. To make a class queriable:

  1. Go to the Classes Tab.
  2. Select the class you want to make queriable. It can be the class you want to attach a query to, or any parent of that class. 
  3. Hold down the right mouse button and select Change metaclass... from the right-click menu. If you wish to make all subclasses of the current class queriable, then choose Change metaclass of subclasses.



    The Select Metaclass dialog is displayed.
  4. Select :CLASS | :STANDARD-CLASS | QUERYABLE-CLASS and click OK.


  5. The class is made queriable and the slot SLOT-QUERIES is added to the class.

Introduction/Enabling the PAL Constraints and PAL Queries Tabs

Next: The PAL Language and Frames/The PAL Language

PAL Table of Contents