| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (12 out of 30)

focus

This action invokes all rules that have a specified object in their Focal-objects attribute, or it invokes all rules that have an object's class or superior class specified in their Focal-classes attribute. The Focal-objects and the Focal-classes attributes of all rules let you specify the object or class, respectively, to which a focus action applies.

To focus on an object:

When a focus action is invoked, such as the action in this example, G2 invokes all the rules that have capacity specified in their Focal-objects attribute or all rules that have the class or a superior class of capacity specified as Focal-class.


You cannot focus directly on a class to focus on all instances at one time. If you need to do that, write a generic rule with this structure:

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (12 out of 30)

Copyright © 1997 Gensym Corporation, Inc.