Do I have to reply to an invoke

Category |  Purpose |  Intended Audience |  Applicable to |  Description |  Limitations |  See also


Category:

Top

Toolset


Purpose:

Top

Provide detailed rules on the use of INVOKE


Intended Audience:

Top

All ObjecTime developers


Applicable to:

Top

All Versions


Description:

Top

If the receiver does not reply() to the invoke message within the same transition (i.e. within the transition it received the invoke'd message on), then the invoke() function returns a 0 (failure). In the SimulationRTS, an exception is raised if the receiver does not reply within the receiving transition. The receiver MUST reply to the invoke within the same transition.

You must check the return code of the invoke() function to know whether you received a reply or not. It returns an int (indicating number of reply messages received).


Limitations:

Top

None


See also:

Top

ObjecTime C++ Guide, and RPL Guide


 

Copyright © 1999, ObjecTime Limited.