Changing port to SAP without losing triggers

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


Category:

Top

Toolset


Purpose:

Top

To provide techniques for editing structure without affecting behavior


Intended Audience:

Top

All ObjecTime developers


Applicable to:

Top

All Versions


Description:

Top

If you need to convert a port to a SAP/SPP, there's a simple way to do so without losing all the associated transition triggers.

Lets assume you have a port called Joe which you wish to convert to a SAP. Here's how to proceed:

  1. Rename end port Joe to Fred.
  2. From Fred's menu, choose "Show Code Refs".
  3. Create the new SAP/SPP named Joe.
  4. Use the code references menu option to obtain a list of references.
  5. Visit each event ref by double clicking on the reference. Note that two kinds of references will be displayed in the Code Reference window 1)Trigger event guards and 2) action code Action code refers to ports by name, and since the name stays the same, these should not be changed. Trigger events are associated with by reference - these must be updated to refer to the new SAP/SPP instead of the old port.

and update.


Limitations:

Top

None


See also:

Top

None


 

Copyright © 1999, ObjecTime Limited.