Exchanging Data Using G2 Gateway (GSI)
To enable communications between a G2 process and a bridge, you create one or more GSI-INTERFACE objects, which specify the protocol to use, along with other relevant information about the remote process.
The GSI interface object acts as a doorway between G2 and the G2 Gateway bridge. Through the interface object, the KB receives data from and sends data to a bridge process.
Both the G2 process and the bridge are capable of sending and receiving data. G2 has the ability to pass knowledge as follows:
A G2 Gateway bridge process provides these additional capabilities:
Both of these capabilities are invoked by certain attribute settings in the GSI interface object, and are described fully in the G2 Gateway Bridge Developer's Guide.
From the G2 process, use remote procedure declarations to pass values, items, and objects to the GSI process. For a description of how to specify remote procedure declarations for data passing, see Using Remote Procedure Calls. The arguments are identical whether G2 is communicating to another G2 process or to a bridge.
G2 can also send text messages and acknowledgments to a bridge. Passing text and acknowledgments requires the use of GSI message objects.
Copyright © 1997 Gensym Corporation, Inc.