24.11.2014 Views

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

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.

2. Frames and Inheritance 22<br />

Inheriting Values through the Frame Hierarchy<br />

In earlier sections we discussed frames and their possibility for distributing<br />

information. In this section we shall discuss in more detail exactly how the<br />

distributed information passes from one frame to another.<br />

In general, information flows down the frame hierarchy from those at the<br />

top to those at the tips. This is accomplished by inheritance.<br />

Whenever there is a request for the some slot value, the inheritance<br />

algorithm is automatically invoked. The most obvious place to look first is in<br />

the original frame itself, since it may have either a current or a default value<br />

for the required attribute. Only if such a value does not exist locally will it be<br />

necessary to look elsewhere.<br />

Where to look, in which order to look and when to stop looking are the<br />

subject matter of the following sections. We shall use the following example<br />

hierarchy to illustrate the different methods.<br />

Example<br />

<strong>flex</strong> toolkit

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

Saved successfully!

Ooh no, something went wrong!