26.12.2013 Views

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

144<br />

FRAME-BASED EXPERT SYSTEMS<br />

Figure 5.8<br />

The class Action Data and WHEN CHANGED methods<br />

number <strong>of</strong> the currently selected instance <strong>of</strong> the class Request <strong>to</strong> the attribute<br />

Current Request Number, which is used as a reference point. The FIND command<br />

uses the number s<strong>to</strong>red in Current Request Number <strong>to</strong> determine the next request<br />

in the list. The LIMIT 1 command tells Level5 Object <strong>to</strong> find the first instance<br />

that matches the search condition. The WHERE clause<br />

WHERE Request Number OF Request > Current Request Number<br />

locates the first instance <strong>of</strong> the class Request whose number is greater than the<br />

value <strong>of</strong> Current Request Number. The request list is maintained in increasing<br />

order <strong>to</strong> ensure that the proper instance is retrieved. If, for example, the current<br />

instance number is 6, then the FIND command will retrieve the instance with<br />

the number 7.<br />

Let us now consider the class Request and its instances represented in Figure<br />

5.9. The instances, Request 1 and Request 2, have the same attributes as the class<br />

Request, but each instance holds specific values for these attributes. To show the<br />

attribute values on the input display, we have <strong>to</strong> create value-boxes (display<br />

items that show data) and then attach these value-boxes <strong>to</strong> the appropriate<br />

attributes. When we run the application, the value-boxes show the attribute

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!