In various ways you can customize how the application's users, and how other G2 developers, work with the objects in the current KB:
Because you can easily operate the current KB, you can quickly test and determine the effects of changes in the KB's objects. Note, also, that you can make many changes to your KB's objects, including in the definitions of classes, while the KB is running. For more information, see Chapter 3, Knowledge Bases.
Starting the current KB causes G2 to perform several standard tasks, all related to activating some or all of the KB's knowledge. Activating an object causes G2 to do something with it, based on the object's class. Activation of objects is described in Chapter 4, Workspaces.
Note: To perform an operation programmatically means that you perform it by invoking an executable item. To perform an operation programmatically requires that the current KB is running.
Pausing and resuming the current KB does just that. No knowledge about the status of executing items is lost due to pausing the KB. Using Menus to Operate on an Object in the KB
By default, you use menus to interact with objects in the current KB. We say "by default," because you can use configurations to suppress the display of any default menu or any default menu choice available in the developer's environment.
Using Menus to Affect the Developer's Environment
You also use menus to interact with G2's developer's environment. To affect a feature or setting in the developer's environment, select from G2's Main Menu and from the Miscellany menu.
To display G2's Main Menu:
Click the mouse on the background of G2's own window.
Change Mode: To display the G2 Login dialog
Inspect: To open the Inspect facility
Miscellany: To display the Miscellany menu
Run Options: To display a menu from which you can select options that affect how G2 runs the current KB
Start, Pause, Resume, Reset, and Restart: To operate the current KB
Clear KB: To clear the current KB
Connect to Foreign Image/Disconnect From Foreign Image: To connect this G2 to or disconnect this G2 from a separately developed C or C++ program
Create New Module: To create a new module in the current KB
Enter Package Preparation Mode and Simulate Package Preparation Mode: To enter or simulate G2's package preparation mode
Load Attribute File: To load a file, called an attributes file, that populates the attributes of existing items in the current KB. Attribute files are a superseded capability. For more information see Appendix F, Superseded Practices.
Neatly Stack Windows: To relocate the currently displayed application windows, or workspaces, into a cascading arrangement
Network Information: To display this G2 process's network information
New Title Block: To display G2's title block
Short Menus/Long Menus: To select long menus or short menus
Shut Down G2: To exit G2
Creating a New Module
Creating a new module means to add a new module object and its associated set of system tables to the current KB's module hierarchy. This module cannot serve as the current KB's top-level module. For more information about modules, see Chapter 5, Modules and Modularized KBs.
Displaying Network Information
Displaying network information means to display the TCP/IP port number and/or the DECnet portname on which this G2 listens for connections from other processes across your network. This information also appears in the G2 title block. Displaying the Title Block
This means to display G2's title block, as shown in Starting G2.
Entering or Simulating Package Preparation Mode
Entering package preparation mode means to set G2's developer's environment so that you can prepare the current KB for customer distribution. Simulating package preparation mode means to set G2's developer's environment so that your G2 behaves as if it were authorized to run the proprietary current KB.
Neatly Stacking Windows
Neatly stacking windows means to relocate the current KB's visible workspaces so that they appear to cascade from the upper left corner of G2's window. Selecting Long or Short Menus
By default, G2's developer's environment presents all menu choices on long menus. You can alternatively select G2's default menu choices from short menus, which display more of the default choices in submenus.
![]() |
![]() |
To use long menus to interact with G2:
Select Main Menu > Miscellany > Long Menus.
To use short menus to interact with G2:
Select Main Menu > Miscellany > Short Menus.
The Inspect facility is described in Chapter 38, The Inspect Facility.
Notifying the User of Errors
An error condition is any unintended or unexpected discrepancy that occurs while G2 is handling information. G2 can detect an error condition whether the current KB is running or not.