Creating Signature Parameters

In the previous Section Creating Signatures we saw how to create an and how to assign different operations to it. For each operation we can add more than one parameter. In order to do that, you can follow the steps below:

  1. In the beginning the editor looks like the picture below. The is created and the operation searchRoom is added to it.
  2. For one Operation we can add more than one Parameter by clicking on the button in the Properties View. If the Properties View is not shown in your editor you can follow Steps 3 and 4 in Section Creating Signatures. In our case the Operation is called searchRoom() and different parameters are added to it; participant, buildingID, time, hasProjector and room . For deleting the Parameters you can use the button
  3. .

  4. Since the Parameters are assigned to the Operation, now we can define if these Parameters can be Input(IN), Output(OUT) or both(INOUT).
  5. In order to do that, you have to click on the Operation and change the Modifier column in the Properties View.

  6. Furthermore, we can create optional parameters, which means that they might or might not be taken into consideration during matching. Optional parameters allow to specify a more flexible service request or service specification. In order to create optional parameters, you have to click on the Operation and change the Optional column in the Properties View. When the field is true, it means that the corresponding parameter is optional, otherwise it is not. In our case buildingID, hasProjector are assigned as optional parameters for the searchRoom operation.
  7. In the next section (Types and Ontologies), we will see how to assign types to the parameters.