| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 11)

Chapter 51

G2 to G2 Interface


Describes how to connect two G2 processes and pass data between them.

Introduction
Exchanging Data Using the G2 to G2 Interface
Using the G2 to G2 Interface
Creating Data Interface Objects
Naming the Interface Object
Identifying Attributes
Setting the Warning Message Level
Defining the Connection Details
Specifying the Protocol to Use
Setting the Interface Timeout Interval
Obtaining the Current Connection Status
Using Whenever Rules That Refer to the Connection Status
Starting the G2 Processes
Activating Data Interface Objects
The g2-to-g2-data-interface Class
Creating Data Interface Subclasses
Using Remote Data Service
Creating a G2-to-G2 Variable
Specifying the G2 Data Interface
Defining the Remote G2 Expression
Considering Network Access Configurations
Example of Remote Data Service
Using Remote Procedure Calls
Creating and Declaring a Remote Procedure
Using an Alternative Procedure Name
Invoking Remote Procedures
Starting a Remote Procedure
Calling a Remote Procedure
Value and Item Passing Arguments and Return Types for RPCs
Considerations for Item Passing
Creating Compatible Definitions
Aligning User-Defined Attributes
Accumulating Transient Items
Value Passing
Configuring the KB for Value Passing
Example of Passing an Integer Value
Example of Passing a Structure Value
Passing an Item as a Network Handle
Configuring the KB for Item Passing as a Network Handle
Obtaining Network Handles
Obtaining a Network Handle Using a System Procedure
Example of Obtaining a Network Handle
Example of Passing an Item as a Handle
Passing Variables and Parameters
Passing a Variable or Parameter as a Copy or Handle
Passing the Current Value of a Variable or Parameter
Passing User- and System-Defined Classes
Configuring the KB for Passing an Item with Attributes
Passing an Entire Item or a Specific Attribute Set
Item-passing Examples in this Chapter
Passing A Copy of Any Item
Including and Excluding Attributes
Passing An Item Including User-Defined Attributes
Example of Passing an Item Including User-Defined Attributes
Passing An Item Excluding User-Defined Attributes
Passing Attributes With Object Values
Example of Passing an Attribute With an Object Value
Passing An Item With System-Defined Attributes
Examples of Passing System-Defined Attributes
Passing Both User- and System-Defined Attributes
Passing An Item With Attributes and A Handle
Specifying One or More Remaining Arguments
Example of Passing Remaining Arguments
Dragging Items Between G2 Processes
Configuring Classes for Drag and Drop
| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 11)

Copyright © 1997 Gensym Corporation, Inc.