| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (10 out of 17)

Configuring Access To and From Other G2, G2 Gateway, and Telewindows Processes

Use the set up network access as follows configuration statement to allow or prohibit access to the entire KB or to one or more items in the KB, by other G2 processes, by G2 Gateway bridge processes, and by Telewindows processes.

Use the set up network access as follows statement as summarized in this table:

Type of Access Short Description Relevant Items or Classes
access to
Permits or denies access to any item from other G2 processes, G2 Gateway, or Telewindows.
Items of any user- or system-defined class.
read
Other G2 processes can use items in the current KB as a source of data service for variables in their own current KBs. Not applicable to G2 Gateway or Telewindows.
KB-wide, items of any system-defined class, or items of any user-defined class
write
Other G2 processes can set a new current value of a variable of a user-defined class. Not applicable to G2 Gateway or Telewindows.
KB-wide, variables of user-defined classes that mix in either the G2-TO-G2-DATA-SERVICE or GSI-DATA-SERVICE class
execute
Other G2 processes or G2 Gateway bridge processes can call a G2 procedure in the current KB.
Items of the PROCEDURE class
inform
Other G2 processes can target an inform action on a variable of a user-defined class.
Items of user-defined classes that mix in the G2-TO-G2-MESSAGE-SERVICE class. Though the editor permits you allow or prohibit inform access to or from G2 Gateway, such access is inappropriate, because there is no way for G2 Gateway to inform a G2 process.
connect
Other G2 processes, G2 Gateway and Telewindows processes can connect to this G2 process.
KB-wide only: Include a setup network access as follows configuration statement only in the Item-configuration attribute of the KB Configuration system table.

Allowing or Prohibiting Network Access

You can allow or prohibit all access to the current KB by other G2 processes, G2 Gateway, and Telewindows.

By default, the configuration in effect is:

	set up network access as follows : 
connect access by g2 and gsi and telewindows
Because network access applies to the entire KB, you must include a global configuration statement such as the following in the Item-configuration attribute of the KB Configuration system table.

To prohibit network access to a KB:

	set up network access as follows : 
prohibit connect access by g2 and gsi and telewindows

Note: G2 does not allow this configuration statement in any other Item-configuration or Instance-configuration attribute.

Allowing Read and Write Access

Allowing read and write access permits other G2 processes to access items in the G2 granting the access:

Variables of a user-defined class that mixes in G2-TO-G2-DATA-SERVICE are candidates for allowing write access.

To restrict read or write access to items by other G2 processes:

	set up network access as follows : 
prohibit read or write access to any vehicle by g2

Allowing Execute Access

Allowing execute access to procedures in the current KB permits another G2 or a G2 Gateway bridge to invoke them using a Remote Procedure Call (RPC).

To restrict execute access:

	set up network access as follows : 
prohibit execute access to update-vehicle-direction
by g2 and gsi

Note: Prohibiting execute access on a rule that can be activated by forward chaining from a variable does not stop the rule from firing. To do this, you must instead declare a configuration that prohibits access to the variable.

Allowing Inform Access

Allowing inform access to variables in the current KB permits another G2 process to pass messages to those variables through an inform action.

To restrict inform access to items:

	set up network access as follows : 
prohibit inform access to any custom-message-receiving-variable
by g2

Allowing Connect Access

Allowing connect access permits another G2 process, G2 Gateway, or Telewindows to establish a connection with this G2 process.

Because connect access applies to the entire KB, it restricts or enables all items in the current KB.

To allow or restrict connect access:

	set up network access as follows : 
allow connect access by g2 and telewindows

Note: Because connect access does not apply to particular items, G2 does not support the absolutely keyword for this phrase.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (10 out of 17)

Copyright © 1997 Gensym Corporation, Inc.