Linking Resource Test with Middleware Marshalling
This example model can be used to test the network simulation.
Test Case Description
Start PCM and import LinkingResourceTest in workspace
PCM IDE up and running, LinkingResourceTest project available in workspace
In the project, right-click on "LinkingResourceTest with Middleware Marshalling.launch" and select "Run As"->"1 LinkingResourceTest with Middleware Marshalling"
A simulation run is launched. The simulation should complete after a few minutes (or less).
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:
The middleware can decide how to handle the size of the int array. At this time, the default glassfish model creates an additional bytesize of 2 * NUMBER_OF_ELEMENTS.
Thus, with the glassfish model in the same folder, the network should be loaded with a demand of 1353. With the network throughput of 10, that is an actual demand of 135.3 plus the latency, which is 0.01, so 135.31 is the final network load.
The simulation output should say at some point (if verbose output is log level debug are enabled):
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).
Used the Palladio Drop.
The output value is not the same as reported in the test case. Instead of 135.31 I received a network load 133.31. The other network demand is correct.
result testing day 11-11-2020: test failed
Middleware simulation is not yet supported by SimuLizar. This should be fixed once SIMULIZAR-118.