Editing an Operation

  1. Open the ClientServer interface that contains the operation you want to modify.
  2. In the Outline tab, select the operation you want to modify.
  3. Do one of the following:

    • In the Edit menu, select Properties.
    • In the context menu, select Properties.
    • Double-click the operation.

    The signature editor window for the selected operation opens. In this dialog window, you can assign arguments.

  4. For each input value, add an argument with direction In, and for each output value, add an argument with direction Out:

    Note

    Since the return value of an operation is predefined, Out arguments must be used to deliver computation results.

    1. Click the Add Argument button.

      The new argument is added, with its name highlighted for in-place editing.

    2. Name the argument and press <Enter>.
    3. In the Argument Type combo box, select the type of the argument.

      You can use only enumerations and records as complex (user-defined) arguments.

      If you selected an array or matrix of enumeration or record type, the Closedfollowing happens.

      The Choose a enumeration type or Choose a record type window opens.

      • In the "Database"/"Workspace" field, select the enumeration or record you want to use, then click OK.
    4. To edit the size of an array or matrix argument, Closeddo the following.

      1. Open the Argument menu or the context menu and select Edit Max Size.

        The Max and Variant Size for: <argument> window opens.

      2. In the Max Size x (and Max Size y) field(s), enter the array or matrix size.
      3. To specify a variable size, use the Variant Size x (and Variant Size y) field(s) to select *.

        The Max Size x (and Max Size y) field(s) is disabled.

        Note

        Since no system constants are allowed in ClientServer interfaces, you cannot specify arrays with variant size.

      4. Click OK to close the window and accept your settings.
    5. In the Direction combo box, select the direction In or Out.
  5. Edit the return value.
  6. Implement the operation arguments.

See also

Opening an AUTOSAR Interface Editor

Directions of Method Arguments

Variable Size for Arrays and Matrices

Scalar Types

Editing an Operation Return Value

Implementing Operation Arguments