Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking Resource Test #96

Open
larissaschmid opened this issue Nov 6, 2023 · 0 comments
Open

Linking Resource Test #96

larissaschmid opened this issue Nov 6, 2023 · 0 comments
Assignees

Comments

@larissaschmid
Copy link
Member

larissaschmid commented Nov 6, 2023

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

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 (SimuLizar) .launch" and select "Run As"->"1 LinkingResourceTest (SimuLizar)" 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 333Thus, 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: LAN: About to issue a demand of 133.31 [de.uka.ipd.sdq.simucomframework.resources.AbstractScheduledResource]"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): “DEBUG: LAN: About to issue a demand of 50.01 [de.uka.ipd.sdq.simucomframework.resources.AbstractScheduledResource]”

@larissaschmid larissaschmid self-assigned this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants