Chapter 5 Building Dynamic Diagrams
The Parameters tab lists all the parameters associated with the event. It allows you to define event parameters that correspond to the event signature.
You can add a parameter in the list by clicking the Add a Row tool, and then open its property sheet by clicking on the Properties tool. A parameter has the following properties:
| Property | Description |
|---|---|
| Parent | Event to which the parameter belongs |
| Name | Name of the parameter |
| Code | Reference name of the parameter |
| Comment | Descriptive comment for the parameter |
| Data type | Set of instances sharing the same semantics |
| Array | When selected, indicates that the data type is a table format |
| Parameter Type | Direction of information flow for the parameter. Indicates what is returned when the parameter is called by the event during the execution process. You can choose from the following:
|
| Default value | Default value when a parameter is omitted. For example:
Use an operation oper(string param1, integer param2)
, and specify two arguments oper(val1, val2) during invocation. Some languages, like C++, allow you to define a default value that is then memorized when the parameter is omitted during invocation.
If the declaration of the method is oper(string param1, integer param2 = default), then the invocation oper(val1) is similar to oper(val1, default). |
| Copyright (C) 2007. Sybase Inc. All rights reserved. |
| |