Difference between revisions of "Send wait"
From SDU
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by NeronLeVelu) |
(→Available methods) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 23: | Line 23: | ||
{| width="100%" | {| width="100%" | ||
|- | |- | ||
| − | ! colspan=3|'''<font size="3"> | + | ! colspan=3|'''<font size="3">Defined on current (TOP) object</font>''' |
|- | |- | ||
|colspan=3|These methods are defined on all objects (maybe) | |colspan=3|These methods are defined on all objects (maybe) | ||
|- | |- | ||
| width="34%" align="left" style="vertical-align:top;" | | | width="34%" align="left" style="vertical-align:top;" | | ||
| + | *[[attrs_by_index|attrs_by_index]] | ||
*[[Send_WaitCall_Attr|call_attr]] | *[[Send_WaitCall_Attr|call_attr]] | ||
| width="33%" align="left" style="vertical-align:top;" | | | width="33%" align="left" style="vertical-align:top;" | | ||
| Line 38: | Line 39: | ||
{| width="100%" | {| width="100%" | ||
|- | |- | ||
| − | ! colspan=3|'''<font size="3"> | + | ! colspan=3|'''<font size="3">Defined on CR object</font>''' |
|- | |- | ||
| width="34%" align="left" style="vertical-align:top;" | | | width="34%" align="left" style="vertical-align:top;" | | ||
| Line 69: | Line 70: | ||
{| width="100%" | {| width="100%" | ||
|- | |- | ||
| − | ! colspan=3|'''<font size="3"> | + | ! colspan=3|'''<font size="3">Defined on CHG object</font>''' |
|- | |- | ||
| width="34%" align="left" style="vertical-align:top;" | | | width="34%" align="left" style="vertical-align:top;" | | ||
Latest revision as of 15:21, 1 March 2012
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.
To discuss or ask questions about this article, select the discussion tab above.
Overview
This is the most tricky function and it is the main reason of difficulty of reading SPELL 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). A timeout mean time after which the function is considering as failure, returning to caller with error and no result. Nearly every time the 0 is used.
- 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
| Defined on current (TOP) object | ||
|---|---|---|
| These methods are defined on all objects (maybe) | ||
| Defined on CR object | ||
|---|---|---|
| Defined on CHG object | ||
|---|---|---|