Page 1 of 1

Accessing duration at runtime

PostPosted: Tue Oct 24, 2017 10:31 am
by max.byers@ngc.com
Hi,

I am trying to access the duration at runtime. At the end of a simulation, the console prints out how long the simulation took to run based on the duration constraints present in the diagram. I wanted to access that value and print it as the simulation was running. In the documentation I saw this comment, "If a behavior has a property or a structural feature value named 'duration', Cameo Simulation Toolkit will assign the duration value to that particular feature value at runtime."

I tried creating a property named duration in several ways but could not get it to work. I am fairly new to Cameo and making diagrams. I attached the project I was working on as a test.

In addition, I am able to create a Timeline Chart that displays how long each activity takes but is it possible to show how long function edges take to run?

Thank you,
Max