To configure the KB for remote data service:
A g2-to-g2 variable is a variable subclass that includes the
G2-TO-G2-DATA-SERVICE as one of its direct superior classes.
To create a g2-to-g2 variable:
G2-TO-G2-DATA-SERVICE as one of the direct superior classes. The mixin provides the additional attributes needed for G2 to G2 data service. Give the subclass any unique name.
Validity-interval attribute to specify any time interval, or indefinite. Data servers other than the Inference Engine cannot have a validity interval of supplied, which is the default.
G2-TO-G2-DATA-SERVICE mixin class sets the Data-server attribute of the variable to G2 data server, and adds two additional attributes, G2-to-g2-interface-name and Remote g2-expression.
G2-to-g2-interface-name attribute specifies the data interface object through which you want G2 to obtain values for the variable.Enter the name of the data interface object that this variable should use.
Remote-g2-expression attribute to indicate what expression you want G2 to evaluate on the remote G2. G2 uses this expression to compute a value for the variable. The expression can include references to any item in the remote G2, but it cannot contain references to items on the local system. For example, to get the current time from the remote machine, you could enter
the current time for the Remote-g2-expression attribute.
set up network access as follows: prohibit read access to this item by g2
the g2-run-state of miscellaneous-parameters
![]() |
kmann-to-jmann object, which is a G2-TO-G2-DATA-INTERFACE object. A variable in the local KB can evaluate to a variable in the remote G2, simply by referring to the remote variable by name. When a local variable refers to a remote variable in this way, the two variables are further associated. If the local G2 executes a
set action on the local variable, the remote G2 concludes that the remote variable is equal to the value of the local G2 variable. In this way, the local G2 can send information to (as well as receive information from) the remote G2 process.Also, multiple variables in the local KB can use a single G2-to-g2 data-interface object through which to obtain their values, or you can create multiple data interface objects to provide remote data service to different variables.