Previous Topic

Next Topic

Book Contents

Book Index

Extend the Server model

In this exercise we modify the InfoServer model and introduce some new behavior. The new behavior describes an exception to the original scenario, a situation in which the Server fails for some internal reasons and the execution terminates.

All source files (in MSC PR format), Telelogic Tau diagrams, and the synthesized SDL executable model are found in the following directory.

<KLOCwork MSC to SDL installation directory>/doc/examples/InfoServer_step1

  1. We use the HMSC Editor as the starting point of the modification. Add another alternative Failure at the a_loop condition.
  2. Embedded JPEG 50%

  3. Add an MSC reference from the palette of graphical symbols at the right side of the HMSC Editor. Name the new symbol Failure.
  4. Connect the condition a_loop to the new symbol by clicking the condition symbol and dragging the connection pin to the new MSC reference symbol and releasing it over that symbol.
  5. Add an HMSC termination symbol from the palette of symbols. Connect the MSC reference Failure to the HMSC termination symbol.
  6. To create the corresponding scenario, double-click on the MSC reference symbol. This operation is supposed to automatically load the corresponding diagram. However, in our case this diagram is not yet available. You see the Reference Creation dialog that prompts you to select a type of the referenced diagram to create. The choices are: MSC diagram or HMSC diagram.
  7. Embedded JPEG 50%

  8. Select MSC Failure and click OK. The missing MSC Failure is created and the MSC Editor opens.
  9. Embedded JPEG 50%

Summary

In this exercise we modified the InfoServer model and introduced some new behavior.

In the next exercise we will demonstrate how to perform automatic validation of the behavior of the MSC model.

See Also

Model: Information Server

Create MSC and HMSC diagrams in Telelogic Tau

Analyze MSCs

Simulate MSCs

Synthesize the SDL model

Inspect the synthesized SDL model

Simulate the synthesized SDL model

Validate the extended Server model

Fix the problem and revalidate the MSC model

Add simulation controls from the environment

Run real-time simulation

Simulate system slice