Define Parameters

Within the properties of an operation, Activity or Interaction, you can define parameters to control how that object and its subordinate objects behave.

The order or sequence of the parameters in the object properties is reproduced in code. You can set and manage the order using facilities available within the Parameter page of the object Properties dialog.

Reference

Field

Usage

See also

Name

Type the parameter name.

 

 

Type

Select the data type of the parameter.

Alternatively, click on the (  ...  ) button and select the element classifier to define the type.

 

 

Default

Indicates an optional default value for the parameter.

 

 

Stereotype

Indicates a stereotype name, specification of a Stereotype name can also be chosen via the drop-down list.

 

 

Kind

Indicate the way a parameter is passed to a function:

In = By Value
InOut = By Reference
Out is passed by Reference, but only the return value is significant

 

 

Fixed

Set the parameter to const, even if passed by reference.

 

 

Alias

Indicate an optional alias for the parameter.

 

 

Add new to end

Place new parameters at the end of the list instead of the start.

 

 

Multiplicity

Display the Multiplicity dialog, to specify the multiplicity of the parameters.

 

 

Notes

Indicate any additional notes on the parameter.

 

 

Below is information regarding the Multiplicity dialog.

Reference

Field

Usage

See also

Lower bound

Define a lower limit to the number of elements allowed in the collection.

 

 

Upper bound

Define an upper limit to the number of elements allowed in the collection.

 

 

Allow Duplicates

Indicate that duplicates are allowed.

This maps to the UML property isUnique, value FALSE.

 

 

Multiplicity is Ordered

Indicate that the collection is ordered.

 

 

Notes

To organize parameters into the required sequence:
Use the Up and Down buttons above the parameter list
Select the Add new to end checkbox to force new parameters to appear at the end of the list instead of the top
Apply the List Header facilities from the column headings at the top of the parameter list
 
Set the amount of parameter detail to display in a specific diagram using the Show Parameter Detail drop-down list on the Diagram Properties dialog; the setting applies only to the current diagram, and the default is to show the type only

Learn more