Difference between revisions of "Send wait"

From SDU
Jump to: navigation, search
(New page: == Overview == This is the most tricky function and it is the main reason of difficulty of reading SPEL code. It is used for calling methods on objects. On every SD object (ie. cr, chg, al...)
 
Line 1: Line 1:
 +
__NOTOC__
 +
[[Category:Customization:send_wait]]
 
== Overview ==
 
== Overview ==
 
This is the most tricky function and it is the main reason of difficulty of reading SPEL code. It is used for calling methods on objects. On every SD object (ie. cr, chg, alg...) are defined methods and using ''send_wait'' function you can call them. Definitions of some of them are in *.maj files in [[$NX_ROOT]]/bopcfg/majic folder.
 
This is the most tricky function and it is the main reason of difficulty of reading SPEL code. It is used for calling methods on objects. On every SD object (ie. cr, chg, alg...) are defined methods and using ''send_wait'' function you can call them. Definitions of some of them are in *.maj files in [[$NX_ROOT]]/bopcfg/majic folder.

Revision as of 09:22, 12 September 2008

Overview

This is the most tricky function and it is the main reason of difficulty of reading SPEL code. It is used for calling methods on objects. On every SD object (ie. cr, chg, alg...) are defined methods and using send_wait function you can call them. Definitions of some of them are in *.maj files in $NX_ROOT/bopcfg/majic folder.

Usage

void send_wait (int timeout, object top_object, string method, [ var parameters… ])

  • timeout - how long (?in seconds?) should the method wait for finishing the method (0 means infinite)
  • top_object - root object for the method (on which the method is called)
  • method - name of the called method
  • parameters - variable number of parameters based on the called method

Results

Function doesn't return value, but methods usually fill global msg array with return values. What values are on what positions depends on the called method.

Available methods

Base object common
These methods are defined on all objects (maybe)
Base object CR
Base object CHG

Examples