Linking Resource Test

Description

This example model can be used to test the network simulation without middleware marshalling / demarshalling.

Environment

None

Test Case Description

Test Step

Expected Result

1

Start PCM and import LinkingResourceTest in workspace

PCM IDE up and running, LinkingResourceTest project available in workspace

2

Create a new Memory Data Source and assign it to the two Run Configuration "LinkingResourceTest (SimuLizar)"

 

3

In the project, right-click on "LinkingResourceTest (SimuLizar) .launch" and select "Run As"->"1 LinkingResourceTest (SimuLizar)"

A simulation run is launched. The simulation should complete after a few minutes (or less).

4

Check the output in the console. It is easiest to copy it in a text editor and then search for the text occurences mentioned as expected results.

C1 sends two parameters to C2 with 3 characterisations:

  • param.NUMBER_OF_ELEMENTS is 10, and param is an Int array

  • param.BYTESIZE is 1000

  • aString.BYTESIZE is 333

Thus, the network should be loaded with a demand of 1333. With the network throughput of 10, that is an actual demand of 133.3 plus the latency, which is 0.01, so 133.31 is the final network load.

The simulation output should say at some point (if verbose output is log level debug are enabled):
"DEBUG: A network load of 133.31 has been determined. [de.uka.ipd.sdq.simucomframework.resources.SimulatedLinkingResource]"

For the communication back from the second component to the first, the RETURN.BYTESIZE is set to 500. Thus, a final network demand of 50.01 should be determined (including latency).

Activity

Show:
Sebastian Krach
January 29, 2021, 8:38 AM
Edited

To see the above output, the launch config needs to be set to LogLevel Debug. With the current SimuLizar launch config, the level is set to info. Then, the log messages appear as required. Success

Martina Rapp
January 14, 2021, 4:48 PM

result testing day 11-11-2020: test failed

Larissa Schmid
November 11, 2020, 3:44 PM

The console disappears during the simulation run

Martina Rapp
October 26, 2020, 1:17 PM

Updated test data URL

Assignee

Sebastian Krach

Reporter

Stephan Seifermann