PalladioSimulator / Palladio-Analyzer-SimuLizar

SimuLizar is a Palladio plug-in for analyzing self-adaptive systems, such as cloud computing systems, at design-time.
https://sdqweb.ipd.kit.edu/wiki/SimuLizar
2 stars 19 forks source link

Linking Resource Test with Middleware Marshalling #98

Open larissaschmid opened 11 months ago

larissaschmid commented 11 months ago

This example model can be used to test the network simulation.

Test Step Expected Result
Start PCM and import LinkingResourceTest in workspace PCM IDE up and running, LinkingResourceTest project available in workspace
Create a new Memory Data Source and assign it to the two Run Configuration "LinkingResourceTest (SimuLizar)"
Set the Debug level of the Run Configuration to DEBUG (Run Configurations -> Common -> Output Details
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:param.NUMBER_OF_ELEMENTS is 10, and param is an Int arrayparam.BYTESIZE is 1000aString.BYTESIZE is 333The 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):"DEBUG: A network load of 135.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).

larissaschmid commented 11 months ago

Middleware simulation is not yet supported by SimuLizar. See SIMULIZAR-118