Using VisualWave and Generic Tasks

Structured Matching , Classification , Design , Database

To use the tool you need to download both VisualWorks (or VisualWave), and the Generic Task Toolset built on top of Visualworks

Once everything is unzipped and setup for VWave is run, the gt-ps.im can be dragged on top of the VWave.exe in order to open the proper image.

Once open, the tool has a number of windows.

Before anything else, when you are finished (an intermittently) Don't forget to save your PS (Problem Solver)!

Introduction

PS Launcher "launches" a tool.


C: Close, H: Help, I: Inspect
Three common types would be the Hierarchical Classifier
To see results here, once you run a case you need to go to the cases menu item and choose "browse output"

Hierarchical Classifier with Results (notice this one makes the results more clear and potentially provides descriptions - probably a better choice for classification)

and the Routine Designer

Database

To use either of these tools, you will need to either make some Structured Matchers or define variables in the Database

For the Database variables, first Browse Database

  1. Left click to pick a variable type
  2. Middle click a chosen variable type and choose new Instance
  3. give the instance a name
  4. when the name shows up in the DB variables side, middle click and choose define variable
    • Depending on the TYPE of variable this is an instancce of, you will get different windows to define them
    • Notice that here you are defining variables you will use in your Problem Solver (PSer). When a user runs the program, these will be set to values (again, depending on the variable type)

Structured Matching

One way to get a Structured Matcher (SM) is by opening a tool from the Launcher. Since this toolset does not link the different tools, if you want a SM for use in your Classifier, you have to create it in the Classifier. This is done by
  1. first creating a SimpleHCPS
  2. choosing Browse HC
  3. click on the Specialist for which you want a SM
  4. choose
    • Edit Top Table: if your Specialist has only one level of SM, then this one will let you go ahead and create the Top Table Matcher
    • Edit Entire Matcher: to make a Matcher Hierarchy. This must be done first if you want your top table to reference any of its subMatchers

Here I chose the Edit Entire Matcher and created the hierachy

using each Matchers menu choice of Create Sub

If, instead, I choose Edit Table, I will get a table to edit

For the Structured Matchers, you can add and delete columns, which can be either DB variables or other SMers(if there are sub SMers defined). One gets this window when you chose to add a column

A common problem: This tool requires that after you choose to add a column, and chose that it is a database variable, you must accept the new instance of the database variable before you can define it. See the database material to remember how to instantiate (steps 1-3). Don't forget that you can always access the DataBase from the HC window to further define DB variables.

At this point you should manipulaate the rows and columns to have the structured matcher in the form you desire. See the notes on SM.
You can always remove the "dummy" column with the delete column choice.

AND, notice that it has a run and clear button choice. If you run a case, the values are shown in the SMer table. If you choose clear, it clears the results off so you can do other cases.

Don't forget to save your PS (Problem Solver)!

Hierarchical Classification
or Hierarchical Classification with Results

The Classification notes show that Classification is easy with the proper organization. This tool allows you to build your hierarchy by Browse HC and then Create Sub

Once the hierarchy is build, you build each Specialist (in this tool, with SMers), and once built, you can run various cases via run in the HC window. Each new case will reset the variables.

For the Dx + Rx Control tool that comes with the Michigan demo,

this is a SimpleHCwithRXPS. What it does differently is it allows you to see all of the possible matches in the end and gives a bit of a description about each possible result. Specifically, if you run a new case, when you have answered the questions, it will pop up a Results List on which you can get more of a description of each result. Check it out.

It also allows pictures ...don't ask, I don't know

Don't forget to save your PS (Problem Solver)!

Design

The Design notes show that Design is more complicated.

The default image that I gave to you for the Toolset opens an example Design tool:

In Design we have a number of different classes for use. Remember
Specialists are composed of Plans (with Selectors and Sponsors) which have Tasks which have Steps to set Constraints

See the design notes and the handout, An Approach to Expert Systems For Mechanical Design for more detail on each of these.

If you choose Browse in the top RD interface window, you get the submenu

I chose the Specialist Hierarchy

On the planting.spec top node, click browse and we see that this Specialist has only one Plan

On the only Plan that is there (planting.plan) choose browse and we see 5 tasks

OR, you could select to put information in about the Sponsor

This same techique Browse allows you to move from Specialist to Plan to Task to Step where you can then define. The submenu also allows you to add new Plans, Tasks, and Steps and to put them in the order you desire

Don't forget to save your PS (Problem Solver)!